diff options
author | Samy Pessé <samypesse@gmail.com> | 2017-02-17 19:01:28 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2017-02-17 19:01:28 +0100 |
commit | 21884d80c311ee7888d4a59c19423643b798d29a (patch) | |
tree | 25357f7a320b3702d0b3f9cc01f381a495925751 /packages/gitbook-core/src/lib/renderWithContext.js | |
parent | 4e3e3e515de5da4a9926ccae38256381f2a32714 (diff) | |
download | gitbook-21884d80c311ee7888d4a59c19423643b798d29a.zip gitbook-21884d80c311ee7888d4a59c19423643b798d29a.tar.gz gitbook-21884d80c311ee7888d4a59c19423643b798d29a.tar.bz2 |
Define actions for low level gitbook.com API
Diffstat (limited to 'packages/gitbook-core/src/lib/renderWithContext.js')
-rw-r--r-- | packages/gitbook-core/src/lib/renderWithContext.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/gitbook-core/src/lib/renderWithContext.js b/packages/gitbook-core/src/lib/renderWithContext.js index 70fba5c..480cfef 100644 --- a/packages/gitbook-core/src/lib/renderWithContext.js +++ b/packages/gitbook-core/src/lib/renderWithContext.js @@ -5,6 +5,7 @@ const PJAXWrapper = require('../components/PJAXWrapper'); const I18nProvider = require('../components/I18nProvider'); const ContextProvider = require('../components/ContextProvider'); const History = require('../actions/history'); +const Api = require('../actions/api'); const contextShape = require('../propTypes/Context'); const GitBookApplication = React.createClass({ @@ -16,11 +17,13 @@ const GitBookApplication = React.createClass({ componentDidMount() { const { context } = this.props; context.dispatch(History.activate()); + context.dispatch(Api.activate()); }, componentWillUnmount() { const { context } = this.props; context.dispatch(History.deactivate()); + context.dispatch(Api.deactivate()); }, render() { |