MCPcopy Index your code
hub / github.com/TanStack/query / Edit

Function Edit

examples/react/react-router/src/routes/edit.tsx:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26export default function Edit() {
27 const { contactId } = useLoaderData() as Awaited<
28 ReturnType<ReturnType<typeof loader>>
29 >
30 const { data: contact } = useSuspenseQuery(contactDetailQuery(contactId))
31
32 return <ContactForm contact={contact} />
33}
34
35export function ContactForm({ contact }: { contact?: Contact }) {
36 const navigate = useNavigate()

Callers

nothing calls this directly

Calls 2

useSuspenseQueryFunction · 0.90
contactDetailQueryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…