We were inconsistent in bubbling errors up to the UI in a predictable way. Given the recent errorBoundary changes on the backend, I've chosen to bubble up errors to the UI for authenticated users, which should make debugging a much speedier process going forward.
In this PR we've extended ToastContext with a createErrorToast function that issues a toast with error severity and a stringified representation of the caught err object.
Summary
We were inconsistent in bubbling errors up to the UI in a predictable way. Given the recent
errorBoundary
changes on the backend, I've chosen to bubble up errors to the UI for authenticated users, which should make debugging a much speedier process going forward.In this PR we've extended
ToastContext
with acreateErrorToast
function that issues a toast witherror
severity and a stringified representation of the caughterr
object.