~/talk

Full Stack Form Validation with React Server Actions

Talkat React Alicante 2024 · 2024-09-19..09-21· [react, frontend-architecture]
slides:none on file

A small validation framework called vest library wires client and server checks together using React Server Actions, running per-field sync and async rules, memoizing server lookups and exposing field-level pending states. The demo builds a registration form with username exists checks, password warnings versus failures, serialized server validation that resumes on the client, and it actually adds users in the live demo, proving the approach works end to end.

AI-written summary · about

  1. 0:00Form validation history
  2. 3:01Validation basics
  3. 4:25Client-side validation limits
  4. 8:01Validation libraries compared
  5. 11:34Vest introduction
  6. 13:19Building form with Vest
  7. 21:37Server-side validation with React
  8. 26:37Email and cross-field checks
  9. 29:08Warning validations and submit
  10. 31:38Form submission with server actions
  11. 33:24useFormStatus for pending
  12. 35:11Client and server validation
  13. 37:54Summary and where to learn more
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.