Changelog

Upcoming

Breaking API Changes:

Remove StandardAction and StandardActionConvertible (#270) - @mjarvis

The existence of StandardAction and StandardActionConvertible is somewhat confusing to new users, and does not have a direct use case within the core ReSwift library. Therefore, it has been moved to ReSwift-Recorder where it belongs.

If you’re using StandardAction in your project without ReSwift-Recorder, you can copy the old implementation into your project as a middle ground while you migrate away from its usage.

The return type has been removed without any replacement, since the core team did not find any use cases of it. A common usage of the return type in redux is returning a promise that is fullfilled when a dispatched action is processed. While it’s generally discouraged to disrupt the unidirectional data flow using this mechanism we do provide a dispatch overload that takes a callback argument and serves this purpose.

Middleware now has a generic type parameter that is used for the getState method and matches the Store’s State type. This allows accessing the state in middleware code without type casting (#226) - @mjarvis