-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
[Omission]: useOptimistic is documented as having a required second parameter #7098
Labels
Comments
Hi @denis-sokolov , |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
useOptimistic’s second parameter is allegedly optional (source), but the docs imply that it is required.
Page
https://react.dev/reference/react/useOptimistic#parameters
Details
Perhaps in the Reference section, Parameters, under updateFn, it could be mentioned that the function is optional, and that the returned function addOptimistic will instead be a setter (setOptimistic).
The text was updated successfully, but these errors were encountered: