Skip to content

Commit 3aa4320

Browse files
author
elevatebart
committed
fix: stop error propagation
1 parent f2c9cc2 commit 3aa4320

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/Preview.vue

+5
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ export default defineComponent({
250250
return;
251251
}
252252
253+
options.errorCaptured = (e: any) => {
254+
this.handleError(e);
255+
return false;
256+
};
257+
253258
this.previewedComponent = markRaw(options);
254259
this.iteration = this.iteration + 1;
255260
this.error = false;

0 commit comments

Comments
 (0)