package brisk-reconciler

  1. Overview
  2. Docs

Module Hooks.EffectSource

Sourcetype 'a t
Sourcetype lifecycle =
  1. | Mount
  2. | Unmount
  3. | Update
Sourcetype always
Sourcetype onMount
Sourcetype 'a condition =
  1. | Always : always condition
  2. | OnMount : onMount condition
  3. | If : ('a -> 'a -> bool) * 'a -> 'a condition
  4. | OnMountAndIf : ('a -> 'a -> bool) * 'a -> 'a condition
Sourcetype handler = unit -> (unit -> unit) option
Sourcetype hook += private
  1. | Effect : 'a t -> 'a t hook