Skip to content

Use usePathname for active state in SidebarNavigation #967

Description

@RUKAYAT-CODER

Overview
In src/components/navigation/SidebarNavigation.tsx (line 21) pathname is read from window.location.pathname at render time, which yields '' during SSR (hydration mismatch) and never updates on client-side navigation, leaving the active highlight stale. Use the Next.js usePathname() hook.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions