Skip to content

Commit

Permalink
Added withRouter to fix routes not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaagens committed Sep 19, 2017
1 parent 23035c8 commit d0fbe0b
Show file tree
Hide file tree
Showing 3 changed files with 1,016 additions and 392 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"babel-preset-stage-0": "^6.16.0",
"css-loader": "^0.28.7",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.2",
"html-webpack-plugin": "^2.22.0",
"image-webpack-loader": "^3.4.2",
"node-sass": "^4.5.3",
Expand Down
3 changes: 2 additions & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React, { Component } from "react";
import { Route, Link } from "react-router-dom";
import { Route, Link, withRouter } from "react-router-dom";
import { inject, observer } from "mobx-react";
import LazyRoute from "lazy-route";
import DevTools from "mobx-react-devtools";

import TopBar from "./TopBar";

@withRouter
@inject("store")
@observer
export default class App extends Component {
Expand Down
Loading

0 comments on commit d0fbe0b

Please sign in to comment.