package brisk-reconciler

  1. Overview
  2. Docs
type 'a hook = ..
type 'a state
type ('remaining, 'result) t
type nil
type empty
type 'a all = (nil, 'a) t
val empty : unit -> ('value, 'value) t
val ofState : 'b state option -> onStateDidChange:(unit -> unit) -> ('b, 'b) t
val toState : 'a all -> 'a state
val printState : 'a state option -> string
val processNext : default:'value -> ?merge:('value -> 'value) -> toWitness:('value -> 'value hook) -> ('value -> 'c, 'd) t -> 'value * ('c, 'd) t
module State : sig ... end
module Reducer : sig ... end
module Ref : sig ... end
module Effect : sig ... end
val state : 'value -> ('value State.t -> 'c, 'd) t -> ('value * (('value -> 'value) -> unit)) * ('c, 'd) t
val reducer : initialState:'value -> ('b -> 'value -> 'value) -> ('value Reducer.t -> 'c, 'd) t -> ('value * ('b -> unit)) * ('c, 'd) t
val ref : 'value -> ('value ref -> 'c, 'd) t -> 'value ref * ('c, 'd) t
val effect : 'value Effect.condition -> (unit -> (unit -> unit) option) -> ('value Effect.t -> 'c, 'd) t -> unit * ('c, 'd) t
val pendingEffects : lifecycle:Effect.lifecycle -> 'a state option -> unit -> unit
val flushPendingStateUpdates : 'a state -> 'a state
OCaml

Innovation. Community. Security.