-
Notifications
You must be signed in to change notification settings - Fork 50.4k
Closed
Labels
Description
This injection is missing in the stack test renderer:
react/src/renderers/dom/stack/client/ReactDOMStackInjection.js
Lines 69 to 72 in 2da35fc
| findDOMNode._injectStack(function(inst) { | |
| inst = getHostComponentFromComposite(inst); | |
| return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null; | |
| }); |
Something similar should be added near here:
Without that, you get a "Missing injection for stack findDOMNode" error when calling findDOMNode in files that use ReactTestRenderer (and don't use ReactDOM). Would be great to repro the error with a test and then fix it.
bvaughn