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
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m4s
This commit is contained in:
parent
75eb00a901
commit
f6c78112ce
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue