Child component not re-rendering on Mobx observable/compute change #3441
-
I have a Authstore.js as below
And then I have login component in this I have multiple child components Login.js
Child component EmailForm.js
When login form was submitted without email the loginErrorMessage need to be displayed using observer but the child component is not re-rendering on the observable change. Please let me know if I'm missing anything. package.json
But if I remove the inject and observer from the child component class and passed the authstore as props to the child component then everything is working fine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
It is unlikely that people will help out with this amount of code without being able to run it. Try to isolate your problem first, and share it in a small repo. It is quite likely you find the culprit already as a side effect of doing so. |
Beta Was this translation helpful? Give feedback.
It is unlikely that people will help out with this amount of code without being able to run it. Try to isolate your problem first, and share it in a small repo. It is quite likely you find the culprit already as a side effect of doing so.