vue-query-nuxt icon indicating copy to clipboard operation
vue-query-nuxt copied to clipboard

feat: (de)serialize any instances of Error in QueryState.error while (de)hydrating

Open n0099 opened this issue 5 months ago โ€ข 1 comments
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.

n0099 avatar May 27 '25 03:05 n0099