Catching Errors from async requests started in onMount
There must be a hole in my Solid knowledge. I want to run a fetch request on component mount. This is not fetching any data so I don't want to use
This async request is taking state and saving it to the database.
However, how do I catch any errors. When the async function throws... the error is always uncaught.
Example code:
The test endpoint purposely returns a 500 status code which then throws an error.
But I can't catch this error with an ErrorBoundary... can't catch it with try/catch
What am I missing?
createResourceThis async request is taking state and saving it to the database.
However, how do I catch any errors. When the async function throws... the error is always uncaught.
Example code:
The test endpoint purposely returns a 500 status code which then throws an error.
But I can't catch this error with an ErrorBoundary... can't catch it with try/catch
What am I missing?
