v0.2.0
Pre-release
Pre-release
React Zedux now has two new features that facilitate some patterns I found emerging from my React Zedux usage.
Changes:
-
createStoreApi()- A new top-level React Zedux export. Call this with an object containingactors,selectorsandhookshashes as well as astoreproperty to auto-bind stuff to the store and flatten the result into a singlestoreApiobject. -
withStores()now takes a second argument,mapStoresToProps. This can be used to prevent a component from re-rendering every time the store's state changes. -
appropriate tests for that stuff 👆
Docs on all this coming soon!