-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] State management #125
Comments
@sakshambhatt assigned to you! |
I am half way done with the RFC. Do we have a wiki page or notion where I can put it? |
put here itself |
RFC no: 1 Start Date: 13th July 2022State management in RDS RN mobile appTable of contents
List of approvers:
Abstract (what is this about?):About managing all state effectively in the React Native app, in such a manner that performance and DX are good without it needing to be over-engineered. Proposed solutions:Argument 1:
Argument 2:
Handling server cache:Options:
Problems to solve:
React Query v SWR:
UI & UX:There won't be any changes in the UI. UX however, will be consistently good due to lower chance of performance issues. Architecture changes:Whatever option is selected must be enforced by maintainers and reviewers in order to maintain consistency and sanity. Also, new developers must be introduced to the particular pattern we decide to follow.
Library dependenciesReact Query
SWR:none Security concerns:Testing & rollout:
|
@ankushdharkar @shreya-mishra, did you have a chance to look at the RFC? If you find it to be exhaustive pertaining to the issue, then might we go ahead and have a discussion with some other members and start executing? |
@sakshambhatt let's discuss it at @10PM today if you are available. |
@ankushdharkar , what will be the next steps for this issue? |
Approach 3:make our own external store and link it using |
Approach 4Use Jotai as the state management library to handle UI state. It can be a good solution when we start integrating different functionalities (modules) like goals, members site, status site as it allows us to create atoms that can be specific to each module & if we want to keep our state within our component tree. Sharing a link from Jotai's official site comparing Jotai and Zustand as they can be very similar when compared from the outside. |
Approach 5 Let's start with the Redux saga or Justand and implement the other management library and just compare which one is better, as RDS is all about learning, implementing, breaking, and rebuilding things. |
How would we measure and compare the performances of these different approaches? |
how about testing the following metrics?
|
Ankush has suggested to search for all the references related to state management in React Native app on the internet. Post that, we would ideally pick the strategy that is standard across the industry. |
Redux team has been advising against Sagas generally... |
No description provided.
The text was updated successfully, but these errors were encountered: