[Suggestion]: Add Async React Hooks section to hooks
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 11.8k
- Forks
- 7.9k
- Merge médio
- 1d 11h
- PRs com merge (30d)
- 11
Descrição
Summary
Update the hooks page to include a section on Async React hooks useTransition, useActionState, and useOptimistic
Page
https://react.dev/reference/react/hooks
Details
The current hooks page has a very React 18 thinking of useTransition (in the Performance Hooks section), useActionState (in other hooks), and is missing the useOptimistic hook. I believe these hooks are better served by being placed in a single section to help spread the React 19 thinking about these hooks.
Proposed Async React Hooks section
Async React Hooks {/async-react-hooks/}
Async React lets you build responsive apps by running async work in Actions callbacks passed to startTransition or action props. State updates from useActionState and useOptimistic must run inside an Action.
useTransitionlets you mark state updates as non-blocking so the UI stays responsive while they run.useActionStatelets you update state from an Action, for form submissions or async reducers.useOptimisticlets you show a temporary UI state while an Action is running.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece pela página de React hooks vinculada na issue e revise como as seções existentes de Performance Hooks e de outros hooks estão organizadas. Adicione, conforme proposto, uma seção de Async React Hooks abrangendo useTransition, useActionState e useOptimistic e, em seguida, verifique se os links e a redação da página estão corretos.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript, react
- Domínio
- documentation
- Tipo de issue
- Documentação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 55/100