Skip to content

Commit af7d484

Browse files
committed
tidy up
1 parent c419ab0 commit af7d484

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,7 @@ export function get(signal) {
603603
}
604604
}
605605

606-
// if this is a derived, we may need to update it, but
607-
// not if `batch_deriveds` is not null (meaning we're
608-
// currently time travelling))
609-
if (is_derived && !is_destroying_effect && batch_deriveds === null) {
606+
if (is_derived && !is_destroying_effect) {
610607
derived = /** @type {Derived} */ (signal);
611608

612609
if (is_dirty(derived)) {
@@ -684,19 +681,6 @@ export function get(signal) {
684681
}
685682
}
686683

687-
// if we're time travelling, we don't want to update the
688-
// intrinsic value of the derived — we want to compute it
689-
// once and stash it for the duration of batch processing
690-
if (is_derived && batch_deriveds !== null) {
691-
derived = /** @type {Derived} */ (signal);
692-
693-
if (!batch_deriveds.has(derived)) {
694-
batch_deriveds.set(derived, execute_derived(derived));
695-
}
696-
697-
return batch_deriveds.get(derived);
698-
}
699-
700684
if ((signal.f & ERROR_VALUE) !== 0) {
701685
throw signal.v;
702686
}

0 commit comments

Comments
 (0)