udecode / zustand-x

Zustand store factory for a best-in-class developer experience.
https://zustand-x.udecode.dev
MIT License
328 stars 20 forks source link

[Fix]: selectors always cause re-render because of always return a new function #38

Closed ShinyLeee closed 2 years ago

ShinyLeee commented 2 years ago

Description

This PR contains below fixes:

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 8671fcd4a5de1ec17d26d6dd49aafd5ef2142c07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------- | ----- | | @udecode/zustood | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

ShinyLeee commented 2 years ago

And maybe we should add more test for this library in the future.