mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Make `onErrorOrWarning` and `getComponentStack` part of `rendererInterface`. By doing this, they will be available from the global hook `rendererInterfaces` Map. This makes them available to be used by Hook, which soon will be the only one who is doing console patching. This is also a pre-requisite for removing `registerRenderer`: https://github.com/facebook/react/blob/d160aa0fbb1bd2d00ea8c771c551c9cb5b47f1e9/packages/react-devtools-shared/src/backend/console.js#L113-L121