Skip to content

Releases: rickyvetter/reductive

Release list

v2.0.1

Choose a tag to compare

@MargaretKrutikova MargaretKrutikova released this 15 Oct 19:44

Bug fixes

  • fix dispatch function changing on every render by making it stable with useCallback, see #51.

v2.0.0

Choose a tag to compare

@MargaretKrutikova MargaretKrutikova released this 24 Sep 20:16

Breaking changes:

  • You are required to wrap your root component with Provider and pass store into it, instead of passing it as part of Config in ReductiveContext.Make. If you try to use any of the available hooks without having Provider in the component tree, they will throw an exception.

This change allows mocking store if you want to write tests for your components, and exposes hook useStore, that could be used for testing or in rare cases when the API of the available hooks is not sufficient.

What's new:

  • useStore hook, that gives access to the whole store, passed into Provider.