generated from Hebilicious/nuxt-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Error not persisted during hydration #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
8 tasks
After #115 and #116 gets merged or using my fork https://www.npmjs.com/package/@n0099/vue-query-nuxt:
Also see: |
n0099
added a commit
to n0099/open-tbm
that referenced
this issue
May 26, 2025
…Hebilicious/vue-query-nuxt#108 (comment) * disable `retryOnMount` to prevent refetch any query that already errored at SSR while hydration: TanStack/query#4956 (comment) @ nuxt.config.ts * no longer serialize `error.message` to JSON string for representing @ `<WidgetSelectForum>` @ fe
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Package:
@hebilicious/vue-query-nuxt 0.3.0
Node:
v22.12.0
Reproduction
Describe the bug
When a page is rendered server side and an API call responded with an error (4xx or 5xx) the state is lost during hydration, causing a hydration mismatch error.
Here's a breakdown of the events:
error
tonull
andisPending
totrue
, causing hydration mismatch errorsAdditional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: