Skip to content

Commit

Permalink
Fix devtools injection
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Apr 10, 2018
1 parent 2e2fa9c commit cf454c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-reconciler/src/ReactFiberReconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,11 @@ export default function<T, P, I, TI, HI, PI, C, CC, CX, PL>(
return ReactFiberDevToolsHook.injectInternals({
...devToolsConfig,
findHostInstanceByFiber(fiber: Fiber): I | TI | null {
return findHostInstance(fiber);
const hostFiber = findCurrentHostFiber(fiber);
if (hostFiber === null) {
return null;
}
return hostFiber.stateNode;
},
findFiberByHostInstance(instance: I | TI): Fiber | null {
if (!findFiberByHostInstance) {
Expand Down

0 comments on commit cf454c5

Please sign in to comment.