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:
- import plugin module
- read and analyze plugin's
package.json
- load plugin's reducer
- call
pluginDidLoad
- 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:
- call
pluginWillUnload
- unmount plugin's UI component
- update plugin list
- remove plugin's reducer and empty plugin store
- remove plugin cache such as import cache