Kernel Panic
Kernel Panic
NNuxt
Created by Kernel Panic on 10/18/2024 in #❓・help
Dealing with useFetch / useAsyncFetch with headers and baseUrl
I am a bit of a newbie to Nuxt. I want to create a custom fetch but with the love that comes with useFetch in terms of caching and the other bits of extras. If i use useFetch, i can load it in setup, but not as a user action. For the user action, i would need $fetch if i am understanding it correctly. I've read the documentation, created my own custom fetch. But would love to try extend the caching ability. Is this possible? I'm considering using Pinia as a "cache" but not sure if this is the right approach. Any and all tips are welcome
11 replies