mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Expose the instance cache
We need access to the instance cache for debugging tools. Ideally we want to expose a more stable and supported interface but this seems like a quick win, for now.
This commit is contained in:
committed by
Paul O’Shannessy
parent
c41e86c990
commit
75aee1714b
@@ -211,6 +211,9 @@ var ReactMount = {
|
||||
/** Whether support for touch events should be initialized. */
|
||||
useTouchEvents: false,
|
||||
|
||||
/** Exposed for debugging purposes **/
|
||||
_instanceByReactRootID: instanceByReactRootID,
|
||||
|
||||
/**
|
||||
* This is a hook provided to support rendering React components while
|
||||
* ensuring that the apparent scroll position of its `container` does not
|
||||
|
||||
Reference in New Issue
Block a user