You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The no-param-reassign rule allows property modifications for params with certain names, like acc and response. I would like to suggest that state is also allowed, for users of Redux Toolkit. The Redux Toolkit documentation recommends this.
The text was updated successfully, but these errors were encountered:
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.
openjck
changed the title
Allow reassignments of parameters named "state"
Allow reassignments of properties of parameters named "state"
Oct 21, 2021
openjck
changed the title
Allow reassignments of properties of parameters named "state"
Ignore property modifications on params named "state"
Nov 2, 2021
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: