Skip to content
Prev Previous commit
Next Next commit
spacing
  • Loading branch information
lunaruan committed Oct 10, 2019
commit 10c30ee3a95e7ec93e6d217d276097e348412713
5 changes: 3 additions & 2 deletions packages/react-reconciler/src/ReactFiberHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ function mountSuspenseDeferredValue<T>(
mountEffect(
() => {
Scheduler.unstable_next(() => {
const previousConfig = requestCurrentSuspenseConfig();
const previousConfig = ReactCurrentBatchConfig.suspense;
ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
try {
setValue(value);
Expand All @@ -1158,7 +1158,7 @@ function updateSuspenseDeferredValue<T>(
updateEffect(
() => {
Scheduler.unstable_next(() => {
const previousConfig = requestCurrentSuspenseConfig();
const previousConfig = ReactCurrentBatchConfig.suspense;
ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
try {
setValue(value);
Expand Down Expand Up @@ -1237,6 +1237,7 @@ function dispatchAction<S, A>(
'rendering, declare it in the component body with useEffect().',
);
}

const alternate = fiber.alternate;
if (
fiber === currentlyRenderingFiber ||
Expand Down