[Integrates] Improve state management with zustand
Problem to solve
Component state management is a typical challenge in React applications. One of the biggest integrates problem is explained in the React guide and it's knowing as prop drilling.
Historically, we have these situations:
- Integrates abandons a Redux solution due to the huge amount of files to modify for small changes and the complexity for new developers.
- Some useContext() solution are implemented, but they don't have any structure due to there are no policies for implementing it.
- Huge components with several props have unreadable and untraceable behaviors (as VulnerabilityView with issue 9631) due to prop drilling.
Thus, the proposed solution should:
- Be easy for adding states and handlers.
- Define a simple rule for creating new states.
- Be able to implement step-by-step while prop drilling is removed.
The first step could be zustand.
Intended users
Developers
Proposal
In a 2022 comparison about state management libraries for React, the main inconvenient with zustand was its documentation, but today is really good.
Proposal is implement zustand and create a new state management standard.
Steps
-
Make sure that the code contributions checklist has been followed.