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.
Sebastian Markbage committed
Aug 30, 2013 at 13:15 UTC
75aee1714b60b8b43ebaebf9bffe5af43ff90cde
1 file changed
+3
src/core/ReactMount.js
+3
@@ -211,6 +211,9 @@ var ReactMount = {
211
/** Whether support for touch events should be initialized. */
212
useTouchEvents: false,
213
214
+ /** Exposed for debugging purposes **/
215
+ _instanceByReactRootID: instanceByReactRootID,
216
+
217
/**
218
* This is a hook provided to support rendering React components while
219
* ensuring that the apparent scroll position of its `container` does not