Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix awaiting Promises when using with Angular #92

Merged
merged 3 commits into from
Oct 29, 2023

Conversation

rkristof
Copy link
Contributor

The existing checks for determining if the object is actually a Promise don't work in Angular, because the native Promise implementation is patched. These additional conditions handle if the object is a ZoneAwarePromise.

I'm not sure if these additional conditions would have any side-effects, as I only tested it with Angular and I'm not very familiar with the detailed workings of the library.

This PR fixes issue #90

rkristof and others added 3 commits October 11, 2023 22:30
The existing checks for determining if the object is actually a Promise don't work in Angular, because the native Promise implementation is patched. These additional conditions handle if the object is a ZoneAwarePromise.
@ceifa ceifa merged commit f2b2a25 into ceifa:main Oct 29, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants