Remove unnecessary router updates

This commit is contained in:
Justin Edmund 2023-01-28 23:16:30 -08:00
parent 69a1b461f7
commit e603ee1bdb

View file

@ -68,13 +68,6 @@ const Header = () => {
useEffect(() => () => unsubscribe(), [])
// Subscribe to router changes
useEffect(() => {
router.events.on('routeChangeStart', (url, { shallow }) => {
console.log(`routing to ${url}`, `is shallow routing: ${shallow}`)
})
}, [])
// Methods: Event handlers (Buttons)
function handleLeftMenuButtonClicked() {
setLeftMenuOpen(!leftMenuOpen)