[Typo]: `useOptimistic` is missing from Hooks reference page
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 11.8k
- Forks
- 7.9k
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 11
Descripción
Summary
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.
Page
https://react.dev/reference/react/hooks
Details
Description
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.
Steps to reproduce
- Open https://react.dev/reference/react/hooks
- Count the hooks documented on the 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:
useOptimisticlets 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
useOptimisticis 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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con src/content/reference/react/hooks.md e inspecciona la sección State Hooks, comparándola con la navegación de Hooks y la página de referencia de useOptimistic. Confirma que la descripción general enumera los 18 hooks y que la nueva entrada enlaza a /reference/react/useOptimistic con la descripción indicada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, react
- Área
- documentation
- Tipo de issue
- Documentación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 82/100