@samitouri / QOS-React / commits / 13eb61d056

Move enableUseDeferredValueInitialArg to canary (#28818)

Per team discussion, this upgrades the `initialValue` argument for `useDeferredValue` from experimental to canary. - Original implementation PR: https://github.com/facebook/react/pull/27500 - API documentation PR: https://github.com/reactjs/react.dev/pull/6747 I left it disabled at Meta for now in case there's old code somewhere that is still passing an `options` object as the second argument.

Andrew Clark committed Apr 16, 2024 at 12:12 UTC 13eb61d0566bdcb6e41a19e433f66ec2ebf62bde
1 file changed +3 -2
packages/shared/ReactFeatureFlags.js
+3 -2
@@ -116,8 +116,6 @@ export const alwaysThrottleRetries = true;
116
117 export const passChildrenWhenCloningPersistedNodes = false;
118
119 -export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;
120 -
119 export const enableServerComponentLogs = __EXPERIMENTAL__;
120
121 /**
@@ -191,6 +189,9 @@ export const disableDOMTestUtils = true;
189 // Make <Context> equivalent to <Context.Provider> instead of <Context.Consumer>
190 export const enableRenderableContext = true;
191
192 +// Enables the `initialValue` option for `useDeferredValue`
193 +export const enableUseDeferredValueInitialArg = true;
194 +
195 // -----------------------------------------------------------------------------
196 // Chopping Block
197 //