Skip to content

Commit 8ba5da9

Browse files
authored
update readme for react-router v7 (#21)
1 parent 3913c04 commit 8ba5da9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ import {
9898
subscribeToSchemeChange,
9999
} from '@epic-web/client-hints/color-scheme'
100100
import { clientHint as timeZoneHint } from '@epic-web/client-hints/time-zone'
101-
import { useRevalidator } from '@remix-run/react'
101+
import { useRevalidator } from 'react-router'
102102
import * as React from 'react'
103103
import { useRequestInfo } from './request-info.ts'
104104

@@ -138,12 +138,12 @@ And then the server-side code in the root loader (what powers the
138138

139139
```tsx
140140
export async function loader({ request }: DataFunctionArgs) {
141-
return json({
141+
return {
142142
// other stuff here...
143143
requestInfo: {
144144
hints: getHints(request),
145145
},
146-
})
146+
}
147147
}
148148
```
149149

0 commit comments

Comments
 (0)