The Redux Framework
Redux is an amazing state management tool, supported by a healthy middleware ecosystem and excellent devtools. Rematch builds upon Redux by reducing boilerplate and enforcing best practices. It provides the following features:
In a few lines you can get easily asynchronous calls to an external API and data stored globally. It's amazing, with Redux you will needs tons of boilerplate, libraries and extra configuration.
…Check it out, right now!
| Redux | Rematch | |
|---|---|---|
| simple setup | ✔ | |
| less boilerplate | ✔ | |
| readability | ✔ | |
| configurable | ✔ | ✔ |
| redux devtools | ✔ | ✔ |
| generated action creators | | ✔ |
| async | thunks | async/await |
Migrating from Redux to Rematch may only involve minor changes to your state management, and no necessary changes to your view logic. See the migration reference for the details.
Rematch and its internals are all built upon a plugin pipeline. As a result, developers can make complex custom plugins that modify the setup or add data models, often without requiring any changes to Rematch itself. See the plugins developed by the Rematch team or the API for creating plugins.
Thank you to all the people who have already contributed to rematch!
Made with contributors-img.
This project is licensed under the MIT license.
使用store返回的dispatch方法修改数组类型页面无法自动更新
immerPlugin of @rematch/immer doesn't work
Rematch immer compilation error - (imported as 'produce') was not found
Effect type inference error on typescript 4.9
[Question] Effects in separate files
[Question] Best practice on call this in reducers and get updated state in effects.
[Typescript] Faulty types
TS errors on 2.2.0
TS error while using selectors inside model effects (with plugin like loading)
@rematch/core has incompatible types with react-redux@8