diff --git a/packages/react/runtime/src/index.ts b/packages/react/runtime/src/index.ts index 8a81cdb87..7cc28c46c 100644 --- a/packages/react/runtime/src/index.ts +++ b/packages/react/runtime/src/index.ts @@ -145,7 +145,12 @@ export function useSignals(): EffectStore { * A wrapper component that renders a Signal's value directly as a Text node or JSX. */ function SignalValue({ data }: { data: Signal }) { - return data.value; + const store = useSignals(); + try { + return data.value; + } finally { + store.f(); + } } // Decorate Signals so React renders them as components.