Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Get loading state from server action without using `useFormStatus` or `useFormState` - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
2y ago
•
1 reply
Liam Idrovo
Get loading state from server action without using `useFormStatus` or `useFormState`
I like doing mutations with server actions because I don
't have to write API routes and they remove the boilerplate of tRPC
.
But
.
Is there a way to get a loading state inside your component if i don
't want to use the recommended experimental hooks
?
It leads to making my my own custom hook the exports a
isLoading
isLoading
variable
, which leads to believe I should just react query
's
useMutation
useMutation
to wrap the server action call just so I can the helpful
isLoading
isLoading
and
isError
isError
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
server action && from state && files
TTC
Theo's Typesafe Cult / questions
2y ago
Next14 useFormState
TTC
Theo's Typesafe Cult / questions
2y ago
useFormState in tables, or complex forms
TTC
Theo's Typesafe Cult / questions
2y ago
How to get data from server action
TTC
Theo's Typesafe Cult / questions
3y ago