From 250af7d2f664ea7add1b06094c81745dba1bd6bc Mon Sep 17 00:00:00 2001 From: Max Milton Date: Thu, 18 Nov 2021 15:17:30 +1000 Subject: [PATCH] Remove invalid event listeners --- src/index.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 61209842..8f71d1d1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -70,14 +70,10 @@ export const Router: Component = (props) => { }; addEventListener('popstate', handleHistoryState); - addEventListener('replacestate', handleHistoryState); - addEventListener('pushstate', handleHistoryState); addEventListener('click', handleClick); onCleanup(() => { removeEventListener('popstate', handleHistoryState); - removeEventListener('replacestate', handleHistoryState); - removeEventListener('pushstate', handleHistoryState); removeEventListener('click', handleClick); });