Skip to content

Commit

Permalink
fix duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 6, 2025
1 parent 6b2fd69 commit 034a4b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export function useErrorHandler(
)

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

0 comments on commit 034a4b3

Please sign in to comment.