feat: tracking updates and route changes to save entries

This commit is contained in:
Kyle Gill
2019-05-17 21:56:19 -06:00
parent 4d90f29770
commit 1e8772cd7a
2 changed files with 18 additions and 17 deletions

View File

@@ -8,8 +8,3 @@ 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)
}