-
-
Notifications
You must be signed in to change notification settings - Fork 9
feat: (de)serialize any instances of Error in QueryState.error while (de)hydrating #116
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
Conversation
...xt/nuxt#20933" This reverts commit 6f7dfce.
...to `dehydrate()`" This reverts commit 99dcfc7.
...al:pluginHook.ts`
...ile (de)hydrating
...tate.failureReason` while (de)hydrating
β οΈ No Changeset found
Latest commit: 4dbdab1
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks
fix: only (de)serialize `state.fetchFailureReason` and `state.failureReason` when it is or like error
Uh oh!
There was an error while loading. Please reload this page.
π Linked issue
#108
β Type of change
π Description
Based on #115.
Users will need to
addKnownErrorConstructor(SomeDerviedError)
if they're using something likee instanceof SomeDerviedError
: n0099/open-tbm@1f8a220#diff-0f75652bede5b3ab02fab6d24c628b1963347f8aa2d54ff8e23bd738a0941250R18-R26π Checklist