File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 366
366
- valerii15298
367
367
- ValiantCat
368
368
- vdusart
369
+ - vesan
369
370
- VictorElHajj
370
371
- vijaypushkin
371
372
- vikingviolinist
Original file line number Diff line number Diff line change @@ -219,10 +219,10 @@ export function UserSearchCombobox() {
219
219
220
220
``` tsx lines=[2,5]
221
221
import { useFetcher } from " react-router" ;
222
- import type { Search } from " ./search-users" ;
222
+ import type { loader } from " ./search-users" ;
223
223
224
224
export function UserSearchCombobox() {
225
- let fetcher = useFetcher <typeof Search . action >();
225
+ let fetcher = useFetcher <typeof loader >();
226
226
// ...
227
227
}
228
228
```
@@ -235,7 +235,7 @@ Ensure you use `import type` so you only import the types.
235
235
import { useFetcher } from " react-router" ;
236
236
237
237
export function UserSearchCombobox() {
238
- let fetcher = useFetcher <typeof Search . action >();
238
+ let fetcher = useFetcher <typeof loader >();
239
239
return (
240
240
<div >
241
241
<fetcher.Form method = " get" action = " /search-users" >
@@ -261,7 +261,7 @@ Note you will need to hit "enter" to submit the form and see the results.
261
261
import { useFetcher } from " react-router" ;
262
262
263
263
export function UserSearchCombobox() {
264
- let fetcher = useFetcher <typeof Search . action >();
264
+ let fetcher = useFetcher <typeof loader >();
265
265
return (
266
266
<div >
267
267
<fetcher.Form method = " get" action = " /search-users" >
You can’t perform that action at this time.
0 commit comments