diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-03 10:35:24 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-03 10:35:24 +0200 |
commit | 34eb35699d951783837faf026a60abadc888a010 (patch) | |
tree | 6cc3f941ca76b7f32329f6c110fe45374d7dfc99 /packages/gitbook-plugin/template/src | |
parent | 3ae72bb47c146212d40fc74d857880fa0616ae57 (diff) | |
download | gitbook-34eb35699d951783837faf026a60abadc888a010.zip gitbook-34eb35699d951783837faf026a60abadc888a010.tar.gz gitbook-34eb35699d951783837faf026a60abadc888a010.tar.bz2 |
Change "init to "activate"
Diffstat (limited to 'packages/gitbook-plugin/template/src')
-rw-r--r-- | packages/gitbook-plugin/template/src/index.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/gitbook-plugin/template/src/index.js b/packages/gitbook-plugin/template/src/index.js index d8e52bf..0fe8869 100644 --- a/packages/gitbook-plugin/template/src/index.js +++ b/packages/gitbook-plugin/template/src/index.js @@ -1,8 +1,11 @@ const GitBook = require('gitbook-core'); module.exports = GitBook.createPlugin({ - init: (dispatch, getState) => { - + activate: (dispatch, getState) => { + // Dispatch initialization actions + }, + deactivate: (dispatch, getState) => { + // Dispatch cleanup actions }, reduce: (state, action) => state }); |