Added rendertron flag
This commit is contained in:
parent
03acf8ba65
commit
6e82e2813b
2 changed files with 5 additions and 0 deletions
|
|
@ -1 +1,4 @@
|
||||||
import '../imports/startup/client';
|
import '../imports/startup/client';
|
||||||
|
|
||||||
|
// https://github.com/GoogleChrome/rendertron#rendering-budget-timeout
|
||||||
|
window.renderComplete = false;
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,8 @@ class LocationListener extends Component {
|
||||||
// https://stackoverflow.com/questions/43512450/react-router-v4-route-onchange-event
|
// https://stackoverflow.com/questions/43512450/react-router-v4-route-onchange-event
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
// https://github.com/GoogleChrome/rendertron#rendering-budget-timeout
|
||||||
|
window.renderComplete = true;
|
||||||
this.handleLocationChange(this.context.router.history.location);
|
this.handleLocationChange(this.context.router.history.location);
|
||||||
this.unlisten =
|
this.unlisten =
|
||||||
this.context.router.history.listen(this.handleLocationChange);
|
this.context.router.history.listen(this.handleLocationChange);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue