import React from "react" import { ThemeProvider } from "emotion-theming" import Firebase, { FirebaseContext } from "./src/components/firebase" import theme from "./src/styles/theme" export const wrapRootElement = ({ element }) => ( {element} ) export const onRouteUpdate = ({ location, prevLocation }) => { console.log("new pathname", location.pathname) console.log("old pathname", prevLocation ? prevLocation.pathname : null) }