-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use Zustand for state management (metadata panel)
- Loading branch information
1 parent
f1d93f9
commit 0426cc3
Showing
1 changed file
with
51 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0426cc3
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.
Cool, I like the zustand changes :)
This blog post comes to mind : https://tkdodo.eu/blog/working-with-zustand#only-export-custom-hooks, I think it would be beneficial to have custom hooks instead of having the selectors in the components.
I think it'd be good to see if the approach can be used here.