Skip to content

Commit

Permalink
Fix bug in react-tree-walker call
Browse files Browse the repository at this point in the history
By default react-tree-walker passes in an undefined context, which
breaks packages like @material-ui and JSSProvider.  This fix passes
in an empty object for context, which fixes components that use the
legacy context API.
  • Loading branch information
capellini committed Dec 13, 2018
1 parent a21012c commit 22ec3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hocs/app-with-translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function (WrappedComponent) {
if (instance && instance.props && instance.props.ns) {
nsFromTree = [...new Set(nsFromTree.concat(instance.props.ns))]
}
})
}, {})
}

// Step 3: Perform data fetching, depending on environment
Expand Down

0 comments on commit 22ec3cb

Please sign in to comment.