Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IAppPlugin<T>

Type parameters

  • T

Hierarchy

Implemented by

Index

Methods

Optional destroy

  • destroy(): Promise<void> | void
  • Called when a plugin should destroy itself, this should be used with super.destroy()

    Returns Promise<void> | void

Optional init

  • init(): Promise<void> | void
  • Called when a plugin should initialize itself, this should be used with super.init()

    All plugins have been constructed at this point

    Returns Promise<void> | void

Optional stateDidUpdate

  • stateDidUpdate(prevState: IAppState): Promise<void> | void
  • Notify the plugin that a state change has taken place

    Parameters

    • prevState: IAppState

      The previous state object which has been replaced

    Returns Promise<void> | void

Optional storeDidUpdate

  • storeDidUpdate(prevStore: T): Promise<void> | void
  • Notify the plugin that a store change has taken place

    Parameters

    • prevStore: T

      The previous store object which has been replaced

    Returns Promise<void> | void