Skip to content

Commit

Permalink
fix: destructed Context.Provider breaking registrations. fixes #1184
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Feb 19, 2019
1 parent 7089062 commit 8240111
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/reactHotLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ const reactHotLoader = {
}
if (isContextType({ type })) {
updateFunctionProxyById(id, type, updateContext)
updateFunctionProxyById(`${id}:provider`, type.Provider, updateContext)
if (type.Provider) {
updateFunctionProxyById(`${id}:provider`, type.Provider, updateContext)
}
incrementGeneration()
}
if (isLazyType({ type })) {
Expand Down

0 comments on commit 8240111

Please sign in to comment.