What is the usage of catchError()? How different is it compare to try catch? #2481
Answered
by
marvin-j97
PTPhongKMF
asked this question in
Q&A
-
https://docs.solidjs.com/reference/reactive-utilities/catch-error the docs provide minimal info, to me it seem to work just like a try catch block? have anyone used it? |
Beta Was this translation helpful? Give feedback.
Answered by
marvin-j97
Jun 6, 2025
Replies: 1 comment
-
One obvious usage is solid/packages/solid/src/render/flow.ts Lines 273 to 297 in 3d3207d And you can see it is indeed just a try-catch wrapper that calls an solid/packages/solid/src/reactive/signal.ts Lines 1024 to 1036 in 3d3207d |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PTPhongKMF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One obvious usage is
ErrorBoundary
:solid/packages/solid/src/render/flow.ts
Lines 273 to 297 in 3d3207d