Skip to content

Commit

Permalink
Added a null check around memoizedProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Aug 24, 2019
1 parent 84b492f commit 1e3b0b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/backend/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,10 @@ export function attach(
let fiber = findCurrentFiberUsingSlowPathById(id);
if (fiber !== null) {
instance = fiber.stateNode;
style = fiber.memoizedProps.style;

if (fiber.memoizedProps !== null) {
style = fiber.memoizedProps.style;
}
}

return { instance, style };
Expand Down

0 comments on commit 1e3b0b5

Please sign in to comment.