How to throw errors in `createRouteAction()` and `createServerAction$()`?
Am I supposed to throw
new Error()
, return an error Response
, or...?3 Replies
Ah, looks like I'm supposed to throw
ServerError
Not sure why that didn't work beforeEverything you throw inside these functions will be accessible in the
.error
property :)
https://start.solidjs.com/api/createRouteAction#handle-errorsSolidStart Beta Docuentation
SolidStart Beta Documentation
Early release documentation and resources for SolidStart Beta
also for createRouteAction ?