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

not working on Angular 10 ? #4

Open
LifeIsStrange opened this issue Oct 21, 2020 · 1 comment
Open

not working on Angular 10 ? #4

LifeIsStrange opened this issue Oct 21, 2020 · 1 comment

Comments

@LifeIsStrange
Copy link

So I tried your Angular example https://codesandbox.io/s/relaxed-lake-i3925
While the demo works well on the server, when I manually copy the exact same code into a more recent Angular setup then it's blocked on pending and never show the api text.Because this library is framework agnostic, I suspect that the issue come from the fact that my npm install odwnload a more recent version of promistate which has introduced the regression ?

I have a secondary goal of using observable casted into a Promise with your lib such as this instead of fetch

this.todosPromise = promistate(() => this.http.get(api).toPromise());

It works when I call load twice.. yet it manage to still display pending... along with the API text.
I hope this can give insight for the regression.

@MZanggl
Copy link
Owner

MZanggl commented Oct 21, 2020

Thanks for the issue!

It would be super helpful if you could also provide a codesandbox example/repository that demonstrates the regression in Angular 10.

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

No branches or pull requests

2 participants