Skip to content

Commit 75aee17

Browse files
sebmarkbagezpao
authored andcommitted
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.
1 parent c41e86c commit 75aee17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/ReactMount.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ var ReactMount = {
211211
/** Whether support for touch events should be initialized. */
212212
useTouchEvents: false,
213213

214+
/** Exposed for debugging purposes **/
215+
_instanceByReactRootID: instanceByReactRootID,
216+
214217
/**
215218
* This is a hook provided to support rendering React components while
216219
* ensuring that the apparent scroll position of its `container` does not

0 commit comments

Comments
 (0)