-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API docs for useDeferredValue's initialValue #6747
Conversation
Updates the API docs for `useDeferredValue` to include the `initialValue` option, added in facebook/react#27500. This feature is slated for release in React 19.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Per team discussion, this upgrades the `initialValue` argument for `useDeferredValue` from experimental to canary. - Original implementation PR: facebook#27500 - API documentation PR: reactjs/react.dev#6747
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, after #6742 lands, we can add a <CanaryBadge>
label for this value so it's clear it's canary. I'll rebase and add it before landing this.
@acdlite I pushed an update with these changes:
Screenshot |
@rickhanlonii Where did you push that? I don't see it |
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.
* Add docs for onCaughtError and onUncaughtError * Updates from feedback
Oops, pushed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we can fix forward if needed
Updates the API docs for
useDeferredValue
to include theinitialValue
option, added infacebook/react#27500.
This feature is slated for release in React 19.