-
Notifications
You must be signed in to change notification settings - Fork 13
state management and architecture decision #30
Conversation
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.
I tend to agree with the decisions but some explanations etc. is missing.
Ideally you already add to doc/architecture the main choices&differences to Bulletproof React, otherwise it is only a half decision. |
5b6e3e0
to
66790df
Compare
Hi, I heard great things about Zustand but never used it myself. I usually just went with Apollo Client as I mostly developed my personal React applications with a GraphQL backend. But I would like to point out, that I would not use Zustand in the way it is currently used inside the Just a quick pointer about state.
My rationale for this is, React Query has integrated mechanisms for network error states, deduping, retries, optimistic ui and so on. Thus much of the wiring code that would be needed in the local state management approach is just included. Here is the documentation that points out the differences to local state management tools Edit: added useful links |
@Bushuo Yup, makes sense and I agree with this. |
Please write this in the beginning of the decision to clarify the context what gets decided.
Please also add then to either #43 or the decision (if they are specific to understand the decision and not really relevant to get started with PermaplanT). |
9c0dc45
to
915f063
Compare
Yes, it makes perfect sense to distinguish between the "types" of state. |
@absurd-turtle Yup, swr is more minimalistic for easy use cases. React Query also has for example, builtin features for pagination. I think in our case a more holistic solution should be preferred. |
Co-authored-by: Paul Buschmann <[email protected]>
Co-authored-by: Paul Buschmann <[email protected]>
Co-authored-by: Markus Raab <[email protected]>
Co-authored-by: Markus Raab <[email protected]>
Co-authored-by: Markus Raab <[email protected]>
Co-authored-by: Markus Raab <[email protected]>
a57f234
to
d270848
Compare
@Bushuo please also add all the details you know about the different state libs. Feel free to push here. |
Co-authored-by: Paul Buschmann <[email protected]>
Hi @markus2330
The ones I know of are either already included (Redux), or related to GraphQL. |
Co-authored-by: Paul Buschmann <[email protected]>
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.
Great work, good that we looked into this again!
Co-authored-by: Markus Raab <[email protected]>
Co-authored-by: Markus Raab <[email protected]>
No description provided.