Skip to content

Commit 14ad18f

Browse files
ci: apply automated fixes
1 parent bf12ba8 commit 14ad18f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/router/framework/react/how-to/share-search-params-across-routes.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const Route = createRootRoute({
3737

3838
function RootComponent() {
3939
const { theme, lang, debug } = Route.useSearch()
40-
40+
4141
return (
4242
<div className={`app theme-${theme} lang-${lang}`}>
4343
{debug && <DebugPanel />}
@@ -66,7 +66,7 @@ export const Route = createFileRoute('/products/')({
6666
function ProductsPage() {
6767
// Contains both local (page, category) AND inherited (theme, lang, debug) parameters
6868
const search = Route.useSearch()
69-
69+
7070
return (
7171
<div>
7272
<h1>Products (Theme: {search.theme})</h1>
@@ -100,17 +100,15 @@ export const Route = createFileRoute('/_authenticated')({
100100

101101
function AuthenticatedLayout() {
102102
const search = Route.useSearch()
103-
103+
104104
return (
105105
<div className="authenticated-layout">
106106
{search.sidebar && <Sidebar />}
107107
<main className="main-content">
108108
{search.notifications && <NotificationBar />}
109109
<Outlet />
110110
</main>
111-
{search.impersonate && (
112-
<ImpersonationBanner user={search.impersonate} />
113-
)}
111+
{search.impersonate && <ImpersonationBanner user={search.impersonate} />}
114112
</div>
115113
)
116114
}
@@ -127,7 +125,7 @@ export const Route = createFileRoute('/_authenticated/dashboard')({
127125
function DashboardPage() {
128126
// Contains inherited auth parameters (impersonate, sidebar, notifications)
129127
const search = Route.useSearch()
130-
128+
131129
return (
132130
<div>
133131
<h1>Dashboard</h1>
@@ -143,16 +141,19 @@ function DashboardPage() {
143141
## Common Use Cases
144142

145143
**Global Application Settings:**
144+
146145
- Theme, language, timezone
147146
- Debug flags, feature toggles
148147
- Analytics tracking (UTM parameters)
149148

150149
**Section-Specific State:**
150+
151151
- Authentication context (user role, impersonation)
152152
- Layout preferences (sidebar, density)
153153
- Workspace or organization context
154154

155155
**Persistent UI State:**
156+
156157
- Modal visibility, drawer state
157158
- Filter presets, view modes
158159
- Accessibility preferences
@@ -241,4 +242,4 @@ After implementing shared search parameters, you might want to:
241242

242243
- [Set Up Basic Search Parameters](./setup-basic-search-params.md) - Learn search parameter fundamentals
243244
- [Navigate with Search Parameters](./navigate-with-search-params.md) - Navigate while preserving search state
244-
- [Validate Search Parameters with Schemas](./validate-search-params.md) - Add type safety to shared parameters
245+
- [Validate Search Parameters with Schemas](./validate-search-params.md) - Add type safety to shared parameters

0 commit comments

Comments
 (0)