Skip to content

[Docs]: Using Fetchers Example #13191

Open
@iyhub

Description

@iyhub

Describe what's incorrect/missing in the documentation

https://reactrouter.com/how-to/fetchers#3-add-type-inference

Where is the export of Search defined?

import { useFetcher } from "react-router";
import type { Search } from "./search-users";

export function UserSearchCombobox() {
  let fetcher = useFetcher<typeof Search.action>();
  // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions