refactor: fix ESLint warning about a missing dependency for useEffect hooks in analytics component
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m4s

This commit is contained in:
Dorian Niemiec 2024-09-19 19:41:25 +02:00
parent 75eb00a901
commit f6c78112ce

View file

@ -44,7 +44,7 @@ function AnalyticsInternal(props: { pagesRouter?: boolean }) {
g.src = u + "matomo.js";
(s.parentNode as ParentNode).insertBefore(g, s);
})();
}, [pathname, searchParams]);
}, [pathname, searchParams, props.pagesRouter]);
return null;
}