Simple opinionated utilities for Zustand
Suggestion: how about making "smart" `withArraySelector`, which applies `shallow` if selector is an array, and use default compare function in all other cases? Example: ```js const useSmartStore = withSmartArraySelector(useExampleStore); // shallow const { bears, increaseBears } = useSmartStore(['bears', 'increaseBears']); // Object.is const wizards = useSmartStore((state) => state.wizards); // Object.is const entities = useSmartStore((store) => state.wizards + state.bears); ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by Mesqalito and has received 1 comments.