What's the best way to work with states from other libraries? #4735
Unanswered
TedGardner
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On a high level: when working with states from other libraries, should I:
On a lower level:
In the project I'm working with, it was suggested that we use TanStack Router for our routing. This has sort of its own state system, mainly what URL the user is at as well as any parameters in view. Generally, I'm using its callbacks (
beforeLoad
orloader
) to dispatch thunks, though technically I could rely on their library exclusively for calls and access the successful results through hooks.I've also got some places where both the router and Redux state have the same variables (entity id, page #, etc).
Beta Was this translation helpful? Give feedback.
All reactions