Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Read memoizedInteractions from HostRoots only
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Oct 22, 2018
1 parent f109374 commit 3e1fba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/attachRendererFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ function attachRendererFiber(hook: Hook, rid: string, renderer: ReactRenderer):
if (context && Object.keys(context).length === 0) {
context = null;
}
memoizedInteractions = publicInstance.memoizedInteractions;
}
const inst = publicInstance;
if (inst) {
Expand All @@ -235,6 +234,7 @@ function attachRendererFiber(hook: Hook, rid: string, renderer: ReactRenderer):
case HostRoot:
nodeType = 'Wrapper';
children = [];
memoizedInteractions = fiber.stateNode.memoizedInteractions;
break;
case HostPortal:
nodeType = 'Portal';
Expand Down

0 comments on commit 3e1fba8

Please sign in to comment.