useAsyncData with pinia
I was reading through the documentation on
I'm curious if you could provide more explanation on this... Specifically, if the presence of a key/or a single fetch without any computed url changes things.
In my case, I don't want to the call to block the route e.g.,
I'm aware I could move the logic out of the store and leverage the built-in cache from
Would something like this work as well?
useAsyncData and I noticed that it mentioned:with the following example:useAsyncDatais for fetching and caching data, not triggering side effects like calling Pinia actions, as this can cause unintended behavior such as repeated executions with nullish values. If you need to trigger side effects, use thecallOnceutility to do so.
I'm curious if you could provide more explanation on this... Specifically, if the presence of a key/or a single fetch without any computed url changes things.
In my case, I don't want to the call to block the route e.g.,
I'm aware I could move the logic out of the store and leverage the built-in cache from
useFetch / useAsyncData.Would something like this work as well?
Nuxt
Nuxt provides composables to handle data fetching within your application.

