question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BREAKING] Get rid of .queue(), .getQueueStep(), .insertQueueStep(), . deleteQueueStep()

See original GitHub issue

Current behavior

The .queue() method was introduced a log time ago in https://github.com/sweetalert2/sweetalert2/pull/165

In v11 the IE11 support will be dropped and all modern browsers support async/await: https://caniuse.com/?search=await

async/await can perfectly replace all use-cases of .queue() and therefore there’s no need in that old burden anymore.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mhutfield-Itrinegycommented, Mar 21, 2022

for anyone else looking for an answer to this question this works:


  let q = ['a','b','c'];
  for (let i = 0; i < q.length; i++) {
      await Swal.fire(q[i]);
   }

0reactions
avimarcommented, May 17, 2022

The docs [1] show these options - these are no longer available?

progressSteps [] Progress steps, useful for queues.

currentProgressStep undefined Current active progress step.

progressStepsDistance undefined

[1] https://sweetalert2.github.io/#configuration

EDIT: I see one referenced just recently: https://github.com/sweetalert2/sweetalert2/pull/2437 So how should these be used?

Read more comments on GitHub >

github_iconTop Results From Across the Web

sweetalert2 - npm
Argument Default value Description target 'body' The container element for adding modal into. padding 20 Modal window padding. background '#fff' Modal window background (CSS background property)....
Read more >
sweetalert2/sweetalert2 v11.0.0 on GitHub - NewReleases.io
Breaking change # 2 - .queue() , .getQueueStep() , .insertQueueStep() , .deleteQueueStep() methods are REMOVED.
Read more >
Sweet Alert Padding Issue - JSFiddle - Code Playground
customClass&&D(e,t.customClass);var E=q(),j=parseInt(null===t.currentProgressStep?k.getQueueStep():t.currentProgressStep,10);t.progressSteps.length?
Read more >
welearn - 小染`` - 博客园
(function (global, factory) { true ? module.exports = factory() ... for getting the index of current popup in queue */ var getQueueStep ......
Read more >
【叮叮助手】百度网盘工具箱直链解析 - Greasy Fork
__esModule ? function getDefault() {; return module.default;; } ... function applyToSingletonTag(style, index, remove, obj) {; var css = remove ?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found