Tumulte
Tumulte
NNuxt
Created by Tumulte on 8/21/2024 in #❓・help
How do you refresh a fetch with a dynamic path (/api/page/[id])
I haven’t tried useAsync yet but ()=> doesn’t change the outcome
11 replies
NNuxt
Created by Tumulte on 8/21/2024 in #❓・help
How do you refresh a fetch with a dynamic path (/api/page/[id])
whatever value is set when the component is instanciated will be triggered
11 replies
NNuxt
Created by Tumulte on 8/21/2024 in #❓・help
How do you refresh a fetch with a dynamic path (/api/page/[id])
yeah but it doesn’t work on refresh
11 replies
NNuxt
Created by Tumulte on 8/21/2024 in #❓・help
How do you refresh a fetch with a dynamic path (/api/page/[id])
(and a ref in the component)
11 replies
NNuxt
Created by Tumulte on 8/21/2024 in #❓・help
How do you refresh a fetch with a dynamic path (/api/page/[id])
it’s an url parameter /api/[id].ts
11 replies
NNuxt
Created by Tumulte on 5/7/2024 in #❓・help
How to mock useRoute in nuxt ?
thank a lot !
4 replies
NNuxt
Created by Tumulte on 5/7/2024 in #❓・help
How to mock useRoute in nuxt ?
no and I wasn't aware of this utility
4 replies
NNuxt
Created by Tumulte on 5/6/2024 in #❓・help
registerEndpoint requires multiple flushPromises
the solution is to return $fetch in deleteChannel() and await wrapper.vm.deleteChannel()
2 replies
NNuxt
Created by Tumulte on 4/30/2024 in #❓・help
registerEndpoint and return status
ok you have to import the method manually...
2 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
🙂
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
or person
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
or lady
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
and a third thanks to you sir
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
where it might be checked a hundred times ?
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
if you allow me one very last question : is it bad to use useState in a loop ?
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
but alright, that's all clear now thanks again
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
it might imply that it won't work outside a composable
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
it's even more confusing when they suggest to use composable https://nuxt.com/docs/getting-started/state-management#shared-state
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
but thanks a lot !
23 replies
NNuxt
Created by Tumulte on 4/19/2024 in #❓・help
Does useState() a default value when the state key already set ?
I don't think it's explained in the docs that's a pity
23 replies