From 1351f2d3321a40de496c8fa0308efd367289b4d9 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Fri, 5 Apr 2019 13:25:28 +0200 Subject: [PATCH] fix: invariant violation react 15 --- src/reconciler/fiberUpdater.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/reconciler/fiberUpdater.js b/src/reconciler/fiberUpdater.js index f77033b2a..1cb42353b 100644 --- a/src/reconciler/fiberUpdater.js +++ b/src/reconciler/fiberUpdater.js @@ -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 => ( + + + + ), + } + } return { default: React.forwardRef((props, ref) => (