From 79f6d3b3ec3f407c7685d4642c2295afd9bd1a65 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 31 Oct 2017 18:24:00 -0700 Subject: [PATCH] Pass location to trigger rerender. This is advised by react-router docs --- app/components/Layout/Layout.js | 3 +++ app/components/Layout/components/SidebarCollections.js | 2 ++ app/scenes/Collection/Collection.js | 3 +-- app/scenes/Document/Document.js | 3 ++- app/scenes/SlackAuth/SlackAuth.js | 3 ++- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/components/Layout/Layout.js b/app/components/Layout/Layout.js index 2a5d34b31..25f11ec86 100644 --- a/app/components/Layout/Layout.js +++ b/app/components/Layout/Layout.js @@ -1,6 +1,7 @@ // @flow import React from 'react'; import { withRouter } from 'react-router-dom'; +import type { Location } from 'react-router-dom'; import { Helmet } from 'react-helmet'; import styled from 'styled-components'; import { observer, inject } from 'mobx-react'; @@ -30,6 +31,7 @@ import DocumentsStore from 'stores/DocumentsStore'; type Props = { history: Object, + location: Location, collections: CollectionsStore, documents: DocumentsStore, children?: ?React.Element, @@ -139,6 +141,7 @@ type Props = {