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
{{ message }}
Repository navigation
[Typo]: useOptimistic is missing from Hooks reference page #8570
The useOptimistic hook is listed in the left navigation menu but is missing from the Built-in React Hooks overview page, leaving the page incomplete with only 17 of the 18 hooks documented.
The left navigation menu under Hooks lists 18 hooks, but the Built-in React Hooks overview page only documents 17 of them. useOptimistic is present in the sidebar but not mentioned anywhere on the overview page.
Compare with the hooks listed in the left navigation menu under Hooks
Expected
useOptimistic should be listed in the State Hooks section of the overview page, alongside useState and useReducer, since it lets you show a different state while an async action is pending.
Actual
useOptimistic is missing from the overview page entirely.
Suggested fix
Add useOptimistic to the State Hooks section in src/content/reference/react/hooks.md:
useOptimistic lets you show a different state while an async action is pending.
Screen Capture
Additional Context:
The overview page is often the first place developers look when exploring React's built-in hooks. Having useOptimistic absent from this page means:
Developers new to React may not discover it exists at all, since the overview page is designed to be the exhaustive entry point for all built-in hooks.
It creates an inconsistency between the sidebar navigation and the page content
useOptimistic is particularly relevant in modern React apps that use Server Actions and async transitions — a growing pattern — so its visibility on the overview page is especially valuable for developers adopting these features.
Activity
slegarraga commentedon Aug 8, 2026
I'll take a look at this one and add the missing useOptimistic entry to the Hooks overview.
martinrebo commentedon Aug 14, 2026
Hi @slegarraga , I already open a PR for it: #8571