Pass location to trigger rerender. This is advised by react-router docs

This commit is contained in:
Tom Moor
2017-10-31 18:24:00 -07:00
parent 507251cfe4
commit 79f6d3b3ec
5 changed files with 10 additions and 4 deletions

View File

@@ -2,8 +2,7 @@
import React, { Component } from 'react';
import { observable } from 'mobx';
import { observer, inject } from 'mobx-react';
import { Redirect } from 'react-router-dom';
import { Link } from 'react-router-dom';
import { Link, Redirect } from 'react-router-dom';
import styled from 'styled-components';
import { newDocumentUrl } from 'utils/routeHelpers';