-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Redux Toolkit part 7 #2971
Conversation
Originally done in f1cf593. Amended to fix some bugs with types. --------- Co-authored-by: Lee Yi <[email protected]>
Type errors will be fixed later.
Done to align with where the action creator is located.
Original implementation in bbf4f09. Adapted to match current state of codebase. --------- Co-authored-by: Lee Yi <[email protected]>
Also added a TODO for a testing util.
Turns out |
Pull Request Test Coverage Report for Build 8937016269Details
💛 - Coveralls |
Thanks! My bad, I missed out the fact that |
Some are left unmigrated to preserve the readability of the diff.
Only updated sagas that require a simple fix of the imported action types. Remaining sagas will be done in a later commit.
To minimise potentially unnecessary development effort while pending removal decision outcome. Only commented handlers that are incompatible with the type changes.
Use the action creator instead of creating the action object manually to enforce abstraction.
Intentionally done in a very specific way, mixing new and old code styles, in order to keep the diff legible for such a large migration. Further refactoring will be done in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and everything still works, will merge now and make the rest of the changes in subsequent parts.
Description
Based on @leeyi45's work done in #2874.
Intentionally split and only migrated some stuff to keep the diff readable.
I strongly recommend going through the changes commit by commit instead of going through the full diff of this PR. Please refer to the commit history for a list of changes.
Type of change
How to test
Everything should still work. Tests involving
createStore
are still failing at the moment, will fix in the next few days.Checklist