Skip to content

Commit

Permalink
fix: context information is not always properly emulated in hot-render,
Browse files Browse the repository at this point in the history
fixes #1094
  • Loading branch information
theKashey committed Dec 19, 2018
1 parent 5d4f226 commit 100fc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reconciler/hotReplacementRender.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ const hotReplacementRender = (instance, stack) => {
try {
next({
children: (child.props ? child.props.children : child.children[0])(
stackContext().get(child.type) ||
stackContext().get(getContextProvider(child.type)) ||
child.type[CONTEXT_CURRENT_VALUE],
),
})
Expand Down

0 comments on commit 100fc9c

Please sign in to comment.