ERROR TypeError: Cannot assign to read only using immer.js #71
Unanswered
st-clair-clarke
asked this question in
Q&A
Replies: 1 comment 6 replies
-
I will try to assist if you can reproduce the problem on stackblitz. Also, why aren't you working with Immer as I suggested? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following function that uses gridData from a data-grid to update the state with name stateProp. The grid uses a select-box UI for the grid cell:
The select-box model is shown below:
On the first selection in the select-box, the state updates as normally.
However, if I attempt to chose a second option in the select-box and attempt to update it, I am getting the following error:
I think the error is caused by the assignment in the else block above
Appreciate any help. Thanks
Beta Was this translation helpful? Give feedback.
All reactions