-
Notifications
You must be signed in to change notification settings - Fork 109
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
Async State not re-rendering when promise immediately resolved #186
Comments
Thanks for the report. I will check it out. I think it is the same as this one: #165 |
Very likely fixed in 3.0.8. Please verify, I could not reproduce it unit tests. If it does not fix it, please reopen the ticket. Thanks |
I have a utility component that transitions between states when waiting for async functions to resolve.
It looks like this
I've found a couple issues using this.
Wrapping with an anonymous function fixes this.
However, now it only renders the AsyncStateLoader component once.
Which means it only outputs the following, stating that it is still waiting for the promise to be resolved.
If I change the createState function to run in another tick it fixes it.
The text was updated successfully, but these errors were encountered: