gabotorresruiz commented on issue #39209:
URL: https://github.com/apache/superset/issues/39209#issuecomment-4422676089

   > The terminology in Phase 0 `useAppStore` is possibly just a conceptual 
holdover from redux, but I assume we will be thinking in terms of multiple 
stores with zustand, rather than one monolithic redux-like store. Would we be 
migrating redux slices, one at a time, to individual zustand stores?
   
   @mikebridge Correct, individual stores per feature, not one monolithic 
store. `useAppStore` is just for the small amount of genuinely cross-feature 
state that shares a lifecycle (user session, common config). Everything else 
lives in feature-scoped stores: `src/explore/stores/`, `src/dashboard/stores/`, 
`src/SqlLab/stores/`. The migration is slice-by-slice from Redux to individual 
`Zustand` stores. The `Zustand` maintainer's guidance is that two pieces of 
state belong in the same store only if they need to update atomically, 
everything else gets its own store.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to