Reinier Kaper
Reinier Kaper
NNuxt
Created by Markus on 7/22/2024 in #❓・help
Nested M2A
And you're sure title actually exists in the data? I.e. if you remove the fields, does it work?
6 replies
NNuxt
Created by Markus on 7/22/2024 in #❓・help
Nested M2A
That should work as far as I can tell, what does the console.log give you? Can you show an example of a page object?
6 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
This comment has a good solution to doing it automatically: https://discord.com/channels/473401852243869706/1263445640537702421/1263513911714381976 But the caveat is that this will track every fetch request, not just the ones you might want to track "locally"
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
Unless you somehow use the interceptors to track a "global" count of fetch requests, you'll have to do some manual tracking :https://stackblitz.com/edit/github-tfsw15?file=app.vue
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
Sure, sec
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
Isn't that literally what status already does?
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
<wrapper :status="status">{{ data }}</wrapper> then handle the status logic in the wrapper component?
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
What issue do you run into with that? (You can rename the variables btw: const { state: field1State } = useFetch())
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
No that's not the case. You can use useFetch in all kinds of scenarios, also on user interaction
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
30 replies
NNuxt
Created by AxelSorensen on 7/18/2024 in #❓・help
Automatic pending state for data being fetched?
The data fetching composables (useFetch, useAsyncData), already have a status property you can leverage
30 replies
NNuxt
Created by lotus on 7/15/2024 in #❓・help
Problem with reactivity and cookies.
I can confirm this works in the latest version of Nuxt 3 for us as well
7 replies
NNuxt
Created by Mähh on 6/26/2024 in #❓・help
useCookie does share state between layout and component when used in composable
We've just been able to get this to work on 3.12.3 by disabling the experimental flag indeed. Might want to do that for now. I believe it's a Chrome(ium?)-only bug
6 replies
NNuxt
Created by Mähh on 6/26/2024 in #❓・help
useCookie does share state between layout and component when used in composable
It does not for us
6 replies
NNuxt
Created by Mähh on 6/26/2024 in #❓・help
useCookie does share state between layout and component when used in composable
Just for posterity (also posted this on another question): this is still a breaking bug in Nuxt 3.12, you need to downgrade to 3.11 for it to work: https://github.com/nuxt/nuxt/issues/27660
6 replies
NNuxt
Created by lotus on 7/15/2024 in #❓・help
Problem with reactivity and cookies.
This is a known issue and currently the only solution is to downgrade to 3.11.3: https://github.com/nuxt/nuxt/issues/27660
7 replies
NNuxt
Created by lav on 7/12/2024 in #❓・help
State not changing when using a composables
Your code in the post is hard to read because it's all just text. What is it you're trying to achieve? And does it also not work in a reproduction? I don't see why a reactive prop wouldn't work
13 replies
NNuxt
Created by lav on 7/12/2024 in #❓・help
State not changing when using a composables
You don't have to use a ref at all. Props are already reactive, just use props.playerId where you need it
13 replies
NNuxt
Created by Klaphinir on 5/16/2024 in #❓・help
Huge stalling times for JS in network tab - only Chrome
it should be <200ms in most cases
12 replies
NNuxt
Created by Klaphinir on 5/16/2024 in #❓・help
Huge stalling times for JS in network tab - only Chrome
Or is throttling enabled? 1.5+ seconds per file is crazy slow
12 replies