catchError
Edit this pageSolid 2.0 —
catchError (and the older onError) have been removed in Solid 2.0. Use the Errored component for error boundaries instead.
Replacement: Errored
// 1.ximport { catchError } from "solid-js"
catchError( () => riskyOperation(), (err) => console.error("Caught:", err))
// 2.0<Errored fallback={(err, reset) => <div>Error: {err.message}</div>}> <RiskyComponent /></Errored>See the Errored reference for full documentation.