MCPcopy Create free account
hub / github.com/TanStack/query / UserInfo

Function UserInfo

packages/react-query/src/__tests__/useQuery.test.tsx:2019–2023  ·  view source on GitHub ↗
({ id }: { id: number | null })

Source from the content-addressed store, hash-verified

2017 }
2018
2019 function UserInfo({ id }: { id: number | null }) {
2020 const searchQuery = useUserInfoQuery({ id, enabled: true })
2021
2022 return <div>UserInfo data is {JSON.stringify(searchQuery.data)} </div>
2023 }
2024
2025 const rendered = renderWithClient(queryClient, <Page />)
2026

Callers

nothing calls this directly

Calls 1

useUserInfoQueryFunction · 0.70

Tested by

no test coverage detected