[Vue warn]: onServerPrefetch is called when there is no active component instance to be associated with. #1797
-
Reproductionhttps://github.com/Maxp777/nuxt4 Steps to reproduce the bugnpm run dev Expected behaviorActual behavior[Vue warn]: onServerPrefetch is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement. Additional informationwith callWithNuxt i get hydration error
with callWithNuxt and async/await I get the same warning as without callWithNuxt
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This probably come from the useAsyncData being use within the pinia action instead of being used at the setup level but it’s not coming from pinia itself |
Beta Was this translation helpful? Give feedback.
This probably come from the useAsyncData being use within the pinia action instead of being used at the setup level but it’s not coming from pinia itself