Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HooksManager

A HooksManager is an environment that manages a tree-based hierarchy of HookEnvironments. By managing an internal hierarchy of HookEnvironments through a subscription to HookEvents, a HooksManager is able to manage Channels to provide state that is shared.

Hierarchy

  • UuidEnv
  • Disposable
    • HooksManager

Index

Properties

None

None: { dispose: () => void }

Empty Disposable

Type declaration

  • dispose: () => void
      • (): void
      • Returns void

Readonly dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

Readonly getAllDescendants

getAllDescendants: (environment: HookEnvironment) => Iterable<HookEnvironment>

Type declaration

Readonly hasBeenUpdated

hasBeenUpdated: (environment: HookEnvironment) => boolean

Check to see if a hook environment has been updated

Type declaration

Readonly hasUpdatedParents

hasUpdatedParents: (environment: HookEnvironment) => boolean

Type declaration

Readonly hookEvents

Listen to hook events

lazy

lazy: () => LazyDisposable

Create a disposable that is lazily created

Type declaration

    • (): LazyDisposable
    • Returns LazyDisposable

Readonly randomUuidSeed

randomUuidSeed: () => UuidSeed

Type declaration

Readonly useChannelState

useChannelState: <E, A, B>(options: UseChannelStateOptions<E, A, B>, node: HookEnvironment) => ChannelEffects<E, UseChannelState<E, A, B>>

Manage a shared state using Channels.

Type declaration

Generated using TypeDoc