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

Resolved promise unnecessarily and indefinitely maintains loading state #353

Open
LewisHarman opened this issue Apr 11, 2024 · 0 comments
Open

Comments

@LewisHarman
Copy link

When using updateDoc in Firebase, the promise is resolved promptly. This was realised in testing by refreshing the page to see if the updateDoc is reflected in the next query from the page and by console logging the returned data in a then statement connected to the custom asynchronous function executed inside the toast.promise. However, toast.promise does not detect the custom asynchronous function has been resolved ever and remains in a loading state indefinitely, rather than changing to a success or error state. I cannot replicate the issue on my device and everything works as expected and intended there. However, I do have a screenshot from 1 of 7 external colleagues who recently had this issue on their device. The toaster was so full it covered the whole screen, causing the external colleague to send a complaint. I believe they are using the latest stable release of Google Chrome, as of 11 April 2024, but cannot be certain about device, although likely a MacBook Pro or Windows 11.
image

@LewisHarman LewisHarman changed the title Resolved promise maintains loading state Resolved promise unnecessarily and indefinitely maintains loading state Apr 11, 2024
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

1 participant