[Enhancement] : Add transparent error recovery for state updates and derived computations #199
Unanswered
jiji-hoon96
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Currently, errors in
setState
or derived computations cause the entire update chain to halt, potentially leaving the application in an inconsistent stateHow other libraries handle this
Zustand
Jotai
Proposed Approach
This keeps the library simple while preventing production crashes from state inconsistency.
Questions
Should error recovery be opt-in or default behavior?
Any concerns about try-catch performance overhead?
Should we preserve error information for debugging?
If you need clarification on how other state management libraries (recoil, redux, etc.) handle errors, please feel free to ask.
And if you have any questions about the methods I've presented, feel free to ask!
I don't know exactly what you're aiming for with tanstack-store, so it's hard to make suggestions.
Beta Was this translation helpful? Give feedback.
All reactions