Open
Description
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).
Activity