We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe091b commit 55ce59fCopy full SHA for 55ce59f
1 file changed
src/components/layout/docs-layout-client.tsx
@@ -30,6 +30,7 @@ export function DocsLayoutClient({ children }: DocsLayoutClientProps) {
30
// reading it during render would cause a hydration mismatch on shared paths
31
// (e.g. /relayer/*) where the active ecosystem is only known on the client.
32
const [lastEcosystem, setLastEcosystem] = useState<string | null>(null);
33
+ // biome-ignore lint/correctness/useExhaustiveDependencies: re-read sessionStorage when pathname changes
34
useEffect(() => {
35
setLastEcosystem(sessionStorage.getItem("lastEcosystem"));
36
}, [pathname]);
0 commit comments