mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user