Skip to content

Commit

Permalink
Move enableUseDeferredValueInitialArg to canary (#28818)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
acdlite authored Apr 16, 2024
1 parent 8afa144 commit 13eb61d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/shared/ReactFeatureFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ export const alwaysThrottleRetries = true;

export const passChildrenWhenCloningPersistedNodes = false;

export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;

export const enableServerComponentLogs = __EXPERIMENTAL__;

/**
Expand Down Expand Up @@ -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
//
Expand Down

0 comments on commit 13eb61d

Please sign in to comment.