This will require: * Updating React to inject `ReactDebugCurrentFrame` to DevTools (will be done as part of https://github.com/facebook/react/pull/16017 or a follow up PR) * Possible alternative to inject the `ReactCurrentFiber` value (https://github.com/facebook/react/pull/16133) * Overriding `console.error`, `console.warn`, and `console.trace` to auto-append component stack (if present). For more context see https://github.com/facebook/react/pull/16017#issuecomment-511046175
This will require:
ReactDebugCurrentFrameto DevTools (will be done as part of Replace React.error and React.warn with getComponentStack facebook/react#16017 or a follow up PR)ReactCurrentFibervalue (Inject getCurrentFiber() function to DevTools facebook/react#16133)console.error,console.warn, andconsole.traceto auto-append component stack (if present).For more context see facebook/react#16017 (comment)