coryhouse / coryhouse/react-restaurant-scriptpro

Refactor admin form to useActionState + useFormStatus

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-6-admin-forms
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Refactor the admin form to React 19's form-actions API using `useActionState` and `useFormStatus`. Contrast with the hand-rolled submitting state from the previous issue.

## Acceptance criteria
- [ ] `useActionState` drives form submission and returns the latest result
- [ ] A submit button child component uses `useFormStatus` to disable itself while pending
- [ ] Validation errors still surface
- [ ] Playwright admin test still passes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.