On add new item into "ObservableMap", functional component is not re rendering when the accessing item is dynamically created #3497
Unanswered
muneerashaik
asked this question in
Q&A
Replies: 1 comment
-
Action's are for mutating state, not for reading it as part of derivations ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Facing Issue:
I am using an observable map to store the tasks. I have a use case where the task is added dynamically after accessing it.
I have an "arrow function" and "normal function" in my store to access the item. When I use "normal function", rendering is as expected otherwise there is no re-rendering happening
How to reproduce the issue:
The minimal example to reproduce the issue
https://codesandbox.io/s/flamboyant-lake-r34r1x?file=/src/App.tsx
Steps to follow to reproduce:
Mobx versions:
Beta Was this translation helpful? Give feedback.
All reactions