Locating source of observer
wrapped components [mobx-react]
#2939
Unanswered
Silic0nS0ldier
asked this question in
General
Replies: 1 comment 2 replies
-
facebook/react#21392 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I work with a large monorepo which uses Mobx extensively, with many (hundreds) of React components being wrapped with
observer
. This presents a challenge however asobserver
does a decent job of hiding the component implementation (going to source in React DevTools will just show the observer function source, particularly unhelpful when a function is anonymous).If anyone has some tips on how to address this pain point, I'm all ears.
Further, if anyone has some ideas on how mobx might be refactored or DevTools enhanced to make the implementation more accessible (like how
React.memo
is treated) I'd be happy to discuss.Beta Was this translation helpful? Give feedback.
All reactions