vue-query-nuxt
vue-query-nuxt copied to clipboard
feat: (de)serialize any instances of Error in QueryState.error while (de)hydrating
trafficstars
๐ Linked issue
#108
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [x] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Based on #115.
Users will need to addKnownErrorConstructor(SomeDerviedError) if they're using something like e instanceof SomeDerviedError: https://github.com/n0099/open-tbm/commit/1f8a220dd0135b86954e4e6d86537a14b14deb44#diff-0f75652bede5b3ab02fab6d24c628b1963347f8aa2d54ff8e23bd738a0941250R18-R26
๐ Checklist
- [x] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.