-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redux [nfc]: Simplify combined reducer (6/n): unroll the main loop.
The list of our reducers is already right here in the same source file, so we don't really need all this metaprogramming on it. By unrolling the loop and unpacking what it does, we make everything more explicit, and in particular make it explicit to the type-checker so that it's able to check the types and we no longer need any fixme comments to turn it off.
- Loading branch information
Showing
1 changed file
with
31 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters