You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you also add this information (which is in the warning) in the docs so that it is not only as a warning in the console?
The example in the docs may further confuse people because formAction is not wrapped in transition (but apparently react does that for you when it is passed as action prop - and many might not realize this).
The text was updated successfully, but these errors were encountered:
Summary
Here:
const [optimisticState, addOptimistic] = useOptimistic(state, updateFn);
When you call
updateFn
without transition react gives warning:Page
https://react.dev/reference/react/useOptimistic
Details
Can you also add this information (which is in the warning) in the docs so that it is not only as a warning in the console?
The example in the docs may further confuse people because
formAction
is not wrapped in transition (but apparently react does that for you when it is passed asaction
prop - and many might not realize this).The text was updated successfully, but these errors were encountered: