Throw vs return in router’s action
Suppose I have an action that should redirect.
In the docs(https://docs.solidjs.com/solid-router/reference/data-apis/action) I found example of both returning and throwing a redirect.
Which should be used and when?
2 Replies
just simply choose one that works
:Worry_PatKEK:
i personally go with throw redirect
So you’re saying they work the same way?