skorphil / nextjs-form

Educational NextJs project to build a complex mobile-first form
https://www.chromatic.com/library?appId=65b2882ac1586a6b21cba0dd
MIT License
3 stars 0 forks source link

Loading state for record form (when waiting for initial data) #73

Closed skorphil closed 6 months ago

skorphil commented 7 months ago

While react-hook-form getting initial values from Server Action the loading state should be shown.

skorphil commented 6 months ago

Seems to be quite simple. RHF has built-in isLoading specifically for this use case

As loader i use pre-made progress component from chakra