Effects not running after a unhandled promise rejection event
When an unhandled error event occurs (e.g. by throwing
When an unhandled promise rejection occurs, the UI/JSX is being updated, I display the state of the resource in the JSX, and it switches from
When displaying
However the
new Error()), the ErrorBoundary is catching the error.When an unhandled promise rejection occurs, the UI/JSX is being updated, I display the state of the resource in the JSX, and it switches from
pending to errored, but the createEffect functions are not running:When displaying
{userResource.state} from the JSX, it prints pending and then updates to errored because there was a promise rejection. It reacts.However the
createEffect above only logs pending once and will not log errored, while the JSX did react/get updated.