[Typo]: No mention of isPending in return values of useActionState
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 11.8k
- Forks
- 7.9k
- Ø Merge
- 1 T. 11 Std.
- Gemergte PRs (30 T.)
- 11
Beschreibung
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
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 👀
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit src/content/reference/react/useActionState.md und prüfe den Abschnitt Returns in den angegebenen Zeilen. Bestätige, wie isPending an anderer Stelle in der useActionState-Dokumentation beschrieben wird, aktualisiere dann den Text zu den Rückgabewerten, sodass die Dokumentation dies abdeckt, und überprüfe, ob die Seite korrekt gerendert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 50/100