From aa19a2d804b8dfb5ffb25ef3d9be775036f1a758 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Wed, 27 Jun 2018 09:56:03 +0300 Subject: [PATCH] using hash router with custom history instance --- src/app/app.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app/app.js b/src/app/app.js index 3de5f61b3..c5e9de3c7 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -1,19 +1,26 @@ import React, { PureComponent } from 'react'; -import { HashRouter, Switch, Route, Redirect } from 'react-router-dom'; +import { Router, Switch, Route, Redirect } from 'react-router-dom'; +import { createHashHistory } from 'history'; import { Main, Addons } from 'stremio-routes'; import styles from './styles'; class App extends PureComponent { + constructor(props) { + super(props); + + this.history = createHashHistory(); + } + render() { return (
- + - +
); }