From 75aee1714b60b8b43ebaebf9bffe5af43ff90cde Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Fri, 30 Aug 2013 13:15:21 -0700 Subject: [PATCH] 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. --- src/core/ReactMount.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/ReactMount.js b/src/core/ReactMount.js index 9bb4c4efd5..cae78be541 100644 --- a/src/core/ReactMount.js +++ b/src/core/ReactMount.js @@ -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