Closed xulayen closed 3 years ago
Your example doesn't specify what com
is, but observer
should be applied at declaration time, not at usage time. For details see https://mobx.js.org/refguide/observer-component.html.
Will close the issue soon unless a test project is provided and the question is rephrased in English.
Your example doesn't specify what
com
is, butobserver
should be applied at declaration time, not at usage time. For details see https://mobx.js.org/refguide/observer-component.html.Will close the issue soon unless a test project is provided and the question is rephrased in English.
thank you for anwer me! the com
is a react component in the context. I try to set it dynamically for the current component and its subcomponents observer
. so , was wrong!
I try to set it dynamically for the current component and its subcomponents observer. so , was wrong!
In react, dynamically set the observer mode for each component and self component. An error is reported: