Skip to content

Commit a507d62

Browse files
committed
up
1 parent dde51e0 commit a507d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/signals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function runWithComputation<T>(computation: Computation, fn: () => T): T
113113

114114
function updateComputation(computation: Computation) {
115115
const state = computation.state;
116-
computation.isDerived && onReadAtom(computation as Derived<any, any>);
116+
if (computation.isDerived) onReadAtom(computation as Derived<any, any>);
117117
if (state === ComputationState.EXECUTED) return;
118118
if (state === ComputationState.PENDING) {
119119
computeSources(computation as Derived<any, any>);

0 commit comments

Comments
 (0)