Skip to content

Commit 13eb61d

Browse files
authored
Move enableUseDeferredValueInitialArg to canary (#28818)
Per team discussion, this upgrades the `initialValue` argument for `useDeferredValue` from experimental to canary. - Original implementation PR: #27500 - API documentation PR: reactjs/react.dev#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.
1 parent 8afa144 commit 13eb61d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: packages/shared/ReactFeatureFlags.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ export const alwaysThrottleRetries = true;
116116

117117
export const passChildrenWhenCloningPersistedNodes = false;
118118

119-
export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;
120-
121119
export const enableServerComponentLogs = __EXPERIMENTAL__;
122120

123121
/**
@@ -191,6 +189,9 @@ export const disableDOMTestUtils = true;
191189
// Make <Context> equivalent to <Context.Provider> instead of <Context.Consumer>
192190
export const enableRenderableContext = true;
193191

192+
// Enables the `initialValue` option for `useDeferredValue`
193+
export const enableUseDeferredValueInitialArg = true;
194+
194195
// -----------------------------------------------------------------------------
195196
// Chopping Block
196197
//

0 commit comments

Comments
 (0)