Redirect to current location from createServerAction$()
I have a logout action that I would like to logout the user without changing the location. My current code looks like this:
This code is functional but it redirects to the home page of my app. I can't use
useLocation()
in a server action, so is there a way to do this without redirecting to the home page?4 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
how would I 'send the current location in the action'?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you can put it in a query param or a hidden form field