We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fafacc commit dae3d1cCopy full SHA for dae3d1c
index.next.js
@@ -36,8 +36,9 @@ export function loadImages(imgs) {
36
* @yields { Promise } a promise that will be resolved when the image will be completely loaded
37
*/
38
export function * loadImagesGen (imgs) {
39
- imgs = domToArray(imgs)
40
- for (let img of imgs) {
+ const list = domToArray(imgs)
+
41
+ for (let img of list) {
42
yield loadImage(img)
43
}
44
0 commit comments