Skip to content

Function: bridgeEffect()

bridgeEffect<S>(compute, handler, options?): void

Defined in: bridge-effect.ts:87

createEffect for a handler that crosses into an imperative system: the crossing is hardened (a sync throw is recorded, not escalated), the bridge survives to deliver the next change. See the module doc for when this is the right primitive — pure-reactive effects should stay createEffect, where a throw is a bug you want loud.

Type Parameters

S

S

Parameters

compute

() => S

handler

(value, prev) => void

options?

BridgeEffectOptions

Returns

void