Use Redux Toolkit lite in an existing project
For a new project, of course we could easily adopt RTK (Redux Toolkit) with top-notch TypeScript support. However, for most of the “plain” Redux legacy projects which are full of boilerplate code, there are some difficulties need to overcome before adoption:
- You need to persuade your team members who might have no experience in RTK and may lose patience in reading the verbose tutorial (there is an open issue here).
- You need to ensure the RTK refactoring is fully backward-compatible while there are too few migration guides to refer to (there is an open issue here).
After meticulous investigation and comprehensive comparisons, finally I chose deox as the best substitute to RTK for old projects. You don’t even need to touch the existing code at all! Check it out and have a try!