We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
onErrorCaptured
1 parent 843a555 commit 3a37aa2Copy full SHA for 3a37aa2
1 file changed
frontend/utils/silence.ts
@@ -42,8 +42,12 @@ function handleRejection(event: PromiseRejectionEvent) {
42
* should only be used once, in the app component.
43
*/
44
export function useSilencedErrorHandlers() {
45
- // Prevent silenced errors originating from Vue contexts from propagating
46
- // further, and prevent other Vue error handlers and dev warnings.
+ // Prevent silenced errors from running other Vue error handlers and logging
+ // dev warnings.
47
+ //
48
+ // (This also stops silenced errors thrown in Vue contexts from propagating
49
+ // further to the below event listeners, but we don't care about that since
50
+ // errors can come from other contexts.)
51
onErrorCaptured((error) => {
52
if (isSilenced(error)) {
53
return false;
0 commit comments