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
Ignore property modifications on params named "state" #2485
Comments
https://redux-toolkit.js.org/usage/immer-reducers#resetting-and-replacing-state suggests that |
Yep, it's only the |
If there was a way to prevent reassignment but allow mutation, that'd be worth considering, but i believe the rule doesn't offer that level of granularity. |
The
no-param-reassign
rule allows property modifications for params with certain names, likeacc
andresponse
. I would like to suggest thatstate
is also allowed, for users of Redux Toolkit. The Redux Toolkit documentation recommends this.The text was updated successfully, but these errors were encountered: