Changelog
2.0.0 - 2020-05-12
Version 2.0 brings a lot of convenience features and one breaking change. The changes are briefly described below. Read the announcement blog post to get more context: https://kea.js.org/blog/kea-2.0
There's also a new babel plugin you might want to check out: https://github.com/keajs/babel-plugin-kea
Finally, Kea 2.0 comes with brand new docs on https://v2.keajs.org. (Old docs for 1.0 and 0.28)
listenersPlugin
before in resetContext
, you need to remove it. Otherwise Kea won't start.[actions.
and ]
in [actions.yourAction]
when defining reducers and listenersotherLogic.actions.doSomething()
as keys for reducers and listeners
and inside the executable part of listeners... instead of having to connect
the values manually.
The logic is automatically connected and mounted if it wasn't already..extend
. Before if you would define a new reducer with
an existing name in the extend
block, it would override the old one completely. Now thery merge
and the actions on the old one still continue to work.createStore
is now true in resetContext
. So if you don't need to specify the key at all if you
don't have any custom redux middleware.path
in your logic can start with anything. Previously it was just kea
or scenes
unless manually
specified.[default, {..}]
to a reducer, now passing an object {..}
works and sets
the default to null.