Skip to content

Fix usage of useDeferredValue #4520

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

Merged
merged 1 commit into from
Mar 30, 2022
Merged

Conversation

SukkaW
Copy link
Contributor

@SukkaW SukkaW commented Mar 30, 2022

Since the very beginning of the useDeferredValue being introduced from Facebook into react back in facebook/react#17058, the usage of useDeferredValue is always const deferredValue = useDeferredValue(...args);, not const [deferredValue] = useDeferredValue(...args);.

The typo is introduced by @rickhanlonii in #4499

@github-actions
Copy link

Size Changes

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

@gaearon gaearon merged commit 69ca55b into reactjs:main Mar 30, 2022
@gaearon
Copy link
Member

gaearon commented Mar 30, 2022

thanks :)

@SukkaW SukkaW deleted the fix-use-deferred-value branch March 30, 2022 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants