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 2f7319c commit c0723adCopy full SHA for c0723ad
packages/svelte/src/internal/client/reactivity/async.js
@@ -196,5 +196,9 @@ export async function async_body(fn) {
196
* @returns {Promise<Array<T>>}
197
*/
198
export function all(...promises) {
199
- return Promise.all(promises.map((promise) => save(promise).then((restore) => restore())));
+ return Promise.all(
200
+ promises.map((promise) =>
201
+ promise instanceof Promise ? save(promise).then((restore) => restore()) : promise
202
+ )
203
+ );
204
}
0 commit comments