From 3586fb7239ad0b6641f06641a7bbec4fb4d6c89c Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Wed, 13 Feb 2019 10:41:38 -0800 Subject: [PATCH] Statically enable suspense/partial hydration flag in www It doesn't hurt to have this always on since it is only when we use Suspense that it matters. This saves some code/checks. --- packages/shared/forks/ReactFeatureFlags.www.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/shared/forks/ReactFeatureFlags.www.js b/packages/shared/forks/ReactFeatureFlags.www.js index 56e563822b0..9bfd3ad3a68 100644 --- a/packages/shared/forks/ReactFeatureFlags.www.js +++ b/packages/shared/forks/ReactFeatureFlags.www.js @@ -14,7 +14,6 @@ import typeof * as FeatureFlagsShimType from './ReactFeatureFlags.www'; export const { debugRenderPhaseSideEffects, debugRenderPhaseSideEffectsForStrictMode, - enableSuspenseServerRenderer, replayFailedUnitOfWorkWithInvokeGuardedCallback, warnAboutDeprecatedLifecycles, disableInputAttributeSyncing, @@ -35,6 +34,8 @@ export const enableSchedulerDebugging = true; export const enableStableConcurrentModeAPIs = false; +export const enableSuspenseServerRenderer = true; + let refCount = 0; export function addUserTimingListener() { if (__DEV__) {