Nuxt3: useLazyAsyncData #1572
Unanswered
capoia
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, how are you?
I'm trying to use pinia with nuxt3 without losing the pros of nuxt3, and one of them is useLazyAsyncData which gives me full control over the request, whether it is pending or not, the refresh option etc.
Does anyone have an example of how to use pinia with this function? I tried to build a method inside the pinia that makes a call to the API and in the end populates the store, and I tried to use this function as a callback of useLazyAsyncData, but without success.


Beta Was this translation helpful? Give feedback.
All reactions