Uncaught (in promise) timer
See original GitHub issueHi.
Since the change of the promises, I’ll get an error
sweetalert2.min.js:1 Uncaught (in promise) timer
when having an alert with a timer to close it.
See this example. A simple if() should do the trick… https://jsfiddle.net/o0b675zm/
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
jquery - Javascript - Uncaught (in promise) - Stack Overflow
The problem is that you should generally never call a function that returns a promise without doing something with that promise.
Read more >(index):1 Uncaught (in promise) Timeout - WordPress.org
(index):1 Uncaught (in promise) Timeout Using chrome dev tools after one minute after page has loaded, I am receiving the following error.
Read more >Promise with timeout in Javascript | by Viking Jonsson
creates a timeout with setTimeout, which takes a callback that triggers a rejected promise after 4000ms.
Read more >How to handle Uncaught (in promise) DOMException ... - Quora
This means that any other pending environment events will likely be processed before the setTimeout callback, even if a timeout duration of zero...
Read more >How to add timeout to a Promise in Javascript
Promises in Javascript has no concept of time. When you use await or attach a function with .then() , it will wait until...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/limonte/sweetalert2#handling-dismissals
That does not work. Error still persists:
Uncaught (in promise) timer
when using.then(