Skip to content

Plugin life cycle

The procedure between the moment plugin is installed, updated, or enabled in settings panel, and the moment it starts to work, is called enable plugin. During this procedure, poi will:

  1. import plugin module
  2. read and analyze plugin's package.json
  3. load plugin's reducer
  4. call pluginDidLoad
  5. update plugin list, load plugin's UI component and mount it

The procedure between the moment plugin is running and and the moment is disabled, is removed or starts being updated, is call disable plugin. During this procedure, poi will:

  1. call pluginWillUnload
  2. unmount plugin's UI component
  3. update plugin list
  4. remove plugin's reducer and empty plugin store
  5. remove plugin cache such as import cache