reactjs / reactjs/react.dev

[Typo]: No mention of isPending in return values of useActionState

Aperta
#6,808 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

type: typos
Lingua principale
JavaScript
Stelle
11.8k
Fork
7.9k
Merge medio
1g 11h
PR unite (30g)
11

Descrizione

Summary

I read the React19 blog. And I also read the documentation about useActionState.

I thought the difference between useActionState and useFormState was that the pending state is returned, but I don't see any mention of this in the current documentation.

Here is what the documentation says about Returns

https://github.com/reactjs/react.dev/blob/01edd5c1070c2c563f86ee508cff3e8cca6a36c3/src/content/reference/react/useActionState.md?plain=1#L72-L77

Perhaps you have renamed it from useFormState and left it in place? I think it would be better to add here that isPending is returned.

I have time to do this, so if it needs fixing I can do it. Please contact me anytime!

Page

https://react.dev/reference/react/useActionState

Details

There is a PR just like this one, but it seems to correct a different part of the problem than the one I am commenting on this time 👀

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con src/content/reference/react/useActionState.md ed esamina la sezione Returns alle righe indicate. Conferma come viene descritto isPending altrove nella documentazione di useActionState, quindi aggiorna il testo dei valori restituiti in modo che la documentazione lo includa e verifica che la pagina venga visualizzata correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, react
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
50/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.