dmarr
dmarr
NNuxt
Created by kb on 11/11/2024 in #❓・help
useAsyncData/useFetch > Function > Pinia Action - Best practices?
pinia colada?
7 replies
NNuxt
Created by Mightsrain on 10/30/2024 in #❓・help
Possible to update API path in static build without rebuild.
If you use empty strings in your runtimeConfig, then when you run the prod build it will read env.
13 replies
NNuxt
Created by dmarr on 10/24/2024 in #❓・help
Debugging server locally with https
@kapa.ai for some reason origin is still reporting http even though I am accessing over https: const { origin } = getRequestURL(event);
6 replies
NNuxt
Created by Mathis on 4/23/2024 in #❓・help
Module & Pinia
I guess the description could be more generic and not mention layers
7 replies
NNuxt
Created by Mathis on 4/23/2024 in #❓・help
Module & Pinia
I have a PR to address this but it has been sitting in the queue for awhile https://github.com/vuejs/pinia/pull/2699
7 replies
NNuxt
Created by hz2222 on 9/30/2024 in #❓・help
detect if a user is active
just remember if you do something in a setTimout or setInterval, they will be stopped when the user changes tabs. so you'd want to move that to a service worker for it to stay alive
4 replies
NNuxt
Created by Tumulte on 5/23/2024 in #❓・help
registerEndpoint returning data from a previous registerEnpoint
3 replies
NNuxt
Created by dmarr on 9/25/2024 in #❓・help
How to test the side effect of a watcher function?
Maybe this boils down to a pinia issue. I have this test that is failing: https://stackblitz.com/edit/nuxt-starter-k48kf2?file=tests%2Fapi.test.ts Basically the fetch call in the store isn't awaited with flushPromises
6 replies
NNuxt
Created by dmarr on 9/25/2024 in #❓・help
How to test the side effect of a watcher function?
seems to be because of that weirdness with registerEndpoints not working when there are multiple endpoints being mocked, and they aren't mocked in the exact order they are called.. 😦
6 replies
NNuxt
Created by dmarr on 9/25/2024 in #❓・help
How to test the side effect of a watcher function?
Ah, I guess flushPromises() does work here. This was an attempt for a minimal reproduction but I still have work to do in my actual file since flushPromises doesn't seem to be enough
6 replies
NNuxt
Created by Tumulte on 5/23/2024 in #❓・help
registerEndpoint returning data from a previous registerEnpoint
Did you ever find a reason for this? I am hitting the same issue
3 replies