Is there a way to grab a throwed error in "action" function
Hello i have a question. I'm going more in depth into solid. But is there actually a way to grab the error that has been throwed inside an "action" function?
i have a function like this ( example ):
and this is the html / jsx implementation:
4 Replies
I think the idea is to return errors and throw redirects
Then use 'useSubmission' to get the value from the action
How would it look like code wise?
Like:
but how does the
useSubmission
now about the action
?
where do i hook it up?I'm not exactly sure how it knows but it does
Just return new Error(). And then get it from action.result or something
that did the job, thanks 🙂