Update client dependencies
This commit is contained in:
parent
1794e2680a
commit
508a41ee45
26 changed files with 4998 additions and 5245 deletions
|
@ -1,8 +1,6 @@
|
|||
import createHistory from 'history/createBrowserHistory';
|
||||
import history from 'history/browser';
|
||||
import UrlPattern from 'url-pattern';
|
||||
|
||||
const history = createHistory();
|
||||
|
||||
export const LOCATION_CHANGED = 'ROUTER_LOCATION_CHANGED';
|
||||
export const PUSH = 'ROUTER_PUSH';
|
||||
export const REPLACE = 'ROUTER_REPLACE';
|
||||
|
@ -97,7 +95,7 @@ export default function initRouter(routes, store) {
|
|||
matched = { location: {} };
|
||||
}
|
||||
|
||||
history.listen(location => {
|
||||
history.listen(({ location }) => {
|
||||
const nextMatch = match(patterns, location);
|
||||
if (
|
||||
nextMatch &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue