Skip to content

v0.2.0

Pre-release
Pre-release

Choose a tag to compare

@bowheart bowheart released this 15 Feb 20:24

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 containing actors, selectors and hooks hashes as well as a store property to auto-bind stuff to the store and flatten the result into a single storeApi object.

  • 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!