File tree 2 files changed +8
-7
lines changed
packages/adapters/remix/app
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 6
6
Scripts ,
7
7
ScrollRestoration
8
8
} from '@remix-run/react'
9
-
9
+ import { NuqsAdapter } from 'nuqs/adapters/remix'
10
10
import './tailwind.css'
11
11
12
12
export const links : LinksFunction = ( ) => [
@@ -41,5 +41,9 @@ export function Layout({ children }: { children: React.ReactNode }) {
41
41
}
42
42
43
43
export default function App ( ) {
44
- return < Outlet />
44
+ return (
45
+ < NuqsAdapter >
46
+ < Outlet />
47
+ </ NuqsAdapter >
48
+ )
45
49
}
Original file line number Diff line number Diff line change 1
1
import type { MetaFunction } from '@remix-run/node'
2
- import { NuqsAdapter } from 'nuqs/adapters/remix'
3
2
import { CounterButton } from '../components/counter-button'
4
3
import { SearchInput } from '../components/search-input'
5
4
@@ -31,10 +30,8 @@ export default function Index() {
31
30
/>
32
31
</ div >
33
32
</ header >
34
- < NuqsAdapter >
35
- < CounterButton />
36
- < SearchInput />
37
- </ NuqsAdapter >
33
+ < CounterButton />
34
+ < SearchInput />
38
35
</ div >
39
36
</ div >
40
37
)
You can’t perform that action at this time.
0 commit comments