FRONT001infoPro

tabs-url-routing

MUI Tabs should use URL routing via useSearchParams for bookmarkable/shareable tabs.

Applies to: TypeScript

Why this matters

When tabs use local useState instead of URL routing, users can't bookmark specific tabs, share links to specific tabs, or use browser back/forward navigation. This hurts UX especially for admin dashboards and multi-section pages. Use useSearchParams to sync tab state with the URL.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, FRONT001 includedstablestack explain FRONT001

FRONT001 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: FRONT001