-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fix: Removes Redux state mutations - iteration 2 #23535
fix: Removes Redux state mutations - iteration 2 #23535
Conversation
Codecov Report
@@ Coverage Diff @@
## master #23535 +/- ##
==========================================
+ Coverage 67.63% 67.71% +0.08%
==========================================
Files 1910 1916 +6
Lines 73747 74018 +271
Branches 7988 8039 +51
==========================================
+ Hits 49879 50124 +245
- Misses 21826 21845 +19
- Partials 2042 2049 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 8 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
export default React.memo(FiltersConfigModal); | ||
export default React.memo( | ||
connect(null, dispatch => | ||
bindActionCreators({ updateCascadeParentIds }, dispatch), |
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.
how about useDispatch()
instead of this classic connect way since it's already FC.
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.
Great idea! Done.
SUMMARY
This iteration removes Redux state mutations from the codebase to allow us to merge #23460 without disrupting the development workflow.
TESTING INSTRUCTIONS
1 - Pull changes from #23460 to enable the immutabilityMiddleware
2 - Add or remove a native filter
3 - You shouldn't see any errors related to state mutation
ADDITIONAL INFORMATION