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
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?