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.
This commit is contained in:
Andrew Clark
2024-04-16 12:12:32 -04:00
committed by GitHub
parent 8afa144bdc
commit 13eb61d056
+3 -2
View File
@@ -116,8 +116,6 @@ export const alwaysThrottleRetries = true;
export const passChildrenWhenCloningPersistedNodes = false;
export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;
export const enableServerComponentLogs = __EXPERIMENTAL__;
/**
@@ -191,6 +189,9 @@ export const disableDOMTestUtils = true;
// Make <Context> equivalent to <Context.Provider> instead of <Context.Consumer>
export const enableRenderableContext = true;
// Enables the `initialValue` option for `useDeferredValue`
export const enableUseDeferredValueInitialArg = true;
// -----------------------------------------------------------------------------
// Chopping Block
//