Skip to content

Commit

Permalink
rest errors queue after passing to handler
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 16, 2025
1 parent cf492c2 commit 6f50803
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export function useErrorHandler(
rejectionHandlers.indexOf(handleOnUnhandledRejection),
1
)

errorQueue.splice(0, errorQueue.length)
rejectionQueue.splice(0, rejectionQueue.length)
}
}, [handleOnUnhandledError, handleOnUnhandledRejection])
}
Expand Down

0 comments on commit 6f50803

Please sign in to comment.