T
TanStack12mo ago
unwilling-turquoise

is there anything like useActionData() in tanstack router?

In react router v6 I have used the useActionData() hook for getting the return value after submitting a form in the action method. I was looking for something like this in the Tanstack router? Is there any hook like useActionData in Tanstack? https://reactrouter.com/en/main/hooks/use-action-data
1 Reply
quickest-silver
quickest-silver12mo ago
How and where are you submitting your forms right now ? I dont think there is an equivalent (I might be wrong, but I double checked the docs again), but I think depending on what you are doing and what your exact use case are -> there are other ways to solve this and maybe even better ways than you would have had with current remix.

Did you find this page helpful?