You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We upgraded to Nuxt 3.15.1, and since then our useThing composable throw hydration errors when fetching data and we have to rely on a custom useAsyncData implementation, using $thing.
Under the hood, useThing should just be useAsyncData('key', $thing() => {}), correct?
So maybe something changed slightly in Nuxt that breaks this implementation?
We've debugged this a bit, and it turns out that the server-side fetch is correct, but initially the client-side one is null for an instant.
You can see this by using an immediate watcher on the data.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
N/A
Describe the bug
We upgraded to Nuxt 3.15.1, and since then our
useThing
composable throw hydration errors when fetching data and we have to rely on a customuseAsyncData
implementation, using$thing
.Under the hood,
useThing
should just beuseAsyncData('key', $thing() => {})
, correct?So maybe something changed slightly in Nuxt that breaks this implementation?
We've debugged this a bit, and it turns out that the server-side fetch is correct, but initially the client-side one is
null
for an instant.You can see this by using an immediate watcher on the data.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: