UseFatch watch fails during OnMounted

UseFatch watch fails during OnMounted Good afternoon people, I encountered a problem during the change of the state of a variable in OnMounted that is being used UseFetch, it does not execute the watch because there is a validation in the UseAsyncData code in the line https://github.com/nuxt/nuxt/blob/a60de743aa30784dcbd27dff64401e8819472d17/packages/nuxt/src/app/composables/asyncData.ts#L281 which validates whether the page is already rendered or not, along with validating whether it is the first execution of the code. I believe the parameter { _initial: false } is missing in the line https://github.com/nuxt/nuxt/blob/a60de743aa30784dcbd27dff64401e8819472d17/packages/nuxt/src/app/composables/asyncData.ts#L380 This causes two problems: - Error with quick customer interaction before finishing hydration - Loss of a variable change during OnMounted. I would like your opinion on whether or not to open a PR for the project
GitHub
nuxt/packages/nuxt/src/app/composables/asyncData.ts at a60de743aa30...
The Intuitive Vue Framework. Contribute to nuxt/nuxt development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server