Skip to content

Commit

Permalink
fix: Allow refs on lazy components
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 5, 2019
1 parent d842b20 commit 798e37f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reconciler/fiberUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export const updateLazy = (target, type) => {
// chunks has been updated - new hot loader process is taking a place
enterHotUpdate()
return {
default: props => (
default: React.forwardRef((props, ref) => (
<AppContainer>
<C {...props} />
<C {...props} ref={ref} />
</AppContainer>
),
)),
}
})
target[lazyConstructor].isPatchedByReactHotLoader = true
Expand Down

0 comments on commit 798e37f

Please sign in to comment.