Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yago committed Mar 9, 2018
2 parents 5ed3c3f + cbd5913 commit e56cdae
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

*2.0.3* (2018-03-09)
- ✨ relaunch ready hook when route change (0f37a5e)

*2.0.2* (2018-03-09)
- ✨ add document event when styleguide is ready (31bfd99)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.2
2.0.3
4 changes: 2 additions & 2 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main.css": "static/css/main.99b383b5.css",
"main.css.map": "static/css/main.99b383b5.css.map",
"main.js": "static/js/main.0612869f.js",
"main.js.map": "static/js/main.0612869f.js.map"
"main.js": "static/js/main.631160b2.js",
"main.js.map": "static/js/main.631160b2.js.map"
}
2 changes: 1 addition & 1 deletion build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/static/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toolbox-reader",
"version": "2.0.2",
"version": "2.0.3",
"private": true,
"eslintConfig": {
"parser": "babel-eslint",
Expand Down
6 changes: 6 additions & 0 deletions src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class App extends Component {
}

componentDidMount() {
this.updateHook();
this.props.history.listen(() => this.updateHook());
}

updateHook() {
setTimeout(() => {
document.dispatchEvent(new Event('ToolboxReady'));
}, 500);
Expand Down Expand Up @@ -97,6 +102,7 @@ App.propTypes = {
getDocs: PropTypes.func.isRequired,
location: PropTypes.object.isRequired,
navigation: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
setBaseURL: PropTypes.func.isRequired,
};

Expand Down

0 comments on commit e56cdae

Please sign in to comment.