Просмотр исходного кода

fix(js): Correct eslint hook rule in routeNotFound (#34470)

Evan Purkhiser 2 лет назад
Родитель
Сommit
9c8499e0a3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      static/app/views/routeNotFound.tsx

+ 1 - 1
static/app/views/routeNotFound.tsx

@@ -26,7 +26,7 @@ function RouteNotFound({router, location}: Props) {
       scope.setFingerprint(['RouteNotFound']);
       Sentry.captureException(new Error('Route not found'));
     });
-  }, [pathname]);
+  }, [pathname, search, hash, isMissingSlash, router]);
 
   if (isMissingSlash) {
     return null;