Interface: RetreeEffectOptions#
Defined in: Retree.ts:102
Options for Retree.effect.
Properties#
| Property | Type | Description | Defined in |
|---|
onError? | (error) => void | Called with any error the effect function throws during a run. Remarks When omitted, errors are rethrown asynchronously (as an uncaught exception on a fresh stack) so one bad run neither kills the reaction nor propagates into the mutation that triggered it. Either way the effect stays subscribed: dependencies read before the throw re-run it, so it can recover on the next relevant change. | Retree.ts:113 |