Skip to content

Commit

Permalink
fix: invariant violation react 15
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 5, 2019
1 parent 798e37f commit 1351f2d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/reconciler/fiberUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ export const updateLazy = (target, type) => {
const C = resolveType(m.default)
// chunks has been updated - new hot loader process is taking a place
enterHotUpdate()
if (!React.forwardRef) {
return {
default: props => (
<AppContainer>
<C {...props} />
</AppContainer>
),
}
}
return {
default: React.forwardRef((props, ref) => (
<AppContainer>
Expand Down

0 comments on commit 1351f2d

Please sign in to comment.