Here is a component that intentionally throws an error:
The App
component is labelled as observerComponent
in the stack track. However, if we remove the observer
wrapper around our component (replace line 11 with line 12) the component name displays in the stack trace.
MobX obfuscating component names make it difficult to debug.
How can I retain the component name in the stack trace while keeping my component as a MobX observer?