Releases: rickyvetter/reductive
Releases · rickyvetter/reductive
v2.0.1
v2.0.0
Breaking changes:
- You are required to wrap your root component with
Providerand pass store into it, instead of passing it as part ofConfiginReductiveContext.Make. If you try to use any of the available hooks without havingProviderin 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:
useStorehook, that gives access to the whole store, passed intoProvider.