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
TaQuanMinhLong
TaQuanMinhLong17h ago
just simply choose one that works :Worry_PatKEK: i personally go with throw redirect
bitobeats
bitobeatsOP16h ago
So you’re saying they work the same way?
Want results from more Discord servers?
Add your server