Skip to content

Commit

Permalink
chore: add possible fix in the angular example
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Cabarcos Baulina committed Oct 19, 2023
1 parent 06a627a commit ee1f2ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/angular/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
// Disabling promise rejection wrapping because it can cause some bugs
//https://github.com/angular/angular/issues/31680
import './zone-flags'
import 'zone.js'; // Included with Angular CLI.


Expand Down
2 changes: 2 additions & 0 deletions examples/angular/src/zone-flags.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
;(window as any).__zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION =
true

0 comments on commit ee1f2ce

Please sign in to comment.