-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
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
|
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
π 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