pull/15844/head
Rich Harris 2 months ago
parent 11f2c4868a
commit 39a7f08ead

@ -124,13 +124,8 @@ export function async_derived(fn, location) {
if (DEV) current_async_effect = null; if (DEV) current_async_effect = null;
promise = var r = () => p;
prev === null promise = prev?.then(r, r) ?? Promise.resolve(p);
? Promise.resolve(p)
: prev.then(
() => p,
() => p
);
prev = promise; prev = promise;

Loading…
Cancel
Save