Remove unnecessary router updates
This commit is contained in:
parent
69a1b461f7
commit
e603ee1bdb
1 changed files with 0 additions and 7 deletions
|
|
@ -68,13 +68,6 @@ const Header = () => {
|
||||||
|
|
||||||
useEffect(() => () => unsubscribe(), [])
|
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)
|
// Methods: Event handlers (Buttons)
|
||||||
function handleLeftMenuButtonClicked() {
|
function handleLeftMenuButtonClicked() {
|
||||||
setLeftMenuOpen(!leftMenuOpen)
|
setLeftMenuOpen(!leftMenuOpen)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue