This commit is contained in:
Kyle Gill
2019-05-17 21:39:37 -06:00
parent 63e16ee468
commit 4d90f29770
18 changed files with 140 additions and 97 deletions

View File

@@ -8,3 +8,8 @@ export const wrapRootElement = ({ element }) => (
<ThemeProvider theme={theme.LIGHT}>{element}</ThemeProvider>
</FirebaseContext.Provider>
)
export const onRouteUpdate = ({ location, prevLocation }) => {
console.log("new pathname", location.pathname)
console.log("old pathname", prevLocation ? prevLocation.pathname : null)
}