Since Kea is built on Redux, it is very easy to connect it to an existing Redux application.
You can use regular Redux actions in reducers and listeners. Just use their
type as a key:
You can use regular selectors in your
In listeners you have access to the
You may pull in data from any part of the Redux state tree with
Instead of passing a logic to fetch from, pass a selector:
Similarly, use an object of action creators and select the ones you need:
See the Kea API docs for all options for connect.
If the redux-only part of your app needs access to some values or actions from kea logic stores, you can import them like so:
See the logic API docs for more details.
- Check out how to Write Plugins for Kea.