Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(options: { env: any; }) {
super();
this.addPlugin = this.addPlugin.bind(this);
this.manageHistoryChange = this.manageHistoryChange.bind(this);
window.PAW_HISTORY = window.PAW_HISTORY || createBrowserHistory({
basename: options.env.appRootUrl,
});
this.history = window.PAW_HISTORY;
this.historyUnlistener = this.history.listen(this.manageHistoryChange);
this.hooks = {
locationChange: new AsyncParallelBailHook(['location', 'action']),
beforeLoadData: new AsyncSeriesHook(['setParams', 'getParams']),
beforeRender: new AsyncSeriesHook(['Application']),
renderRoutes: new AsyncSeriesHook(['AppRoutes']),
renderComplete: new SyncHook(),
};
this.options = options;
this.manageServiceWorker();
}