Skip to content

Commit

Permalink
Ensure | null is added to queryRef in return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 26, 2024
1 parent b6a7040 commit 66b958e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/shared/Overrides/UseLoadableQueryResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const HANDLERS = `{

const RETURN_VALUE = `[
loadQuery: LoadQueryFunction<TVariables>,
queryRef: QueryReference<TData, TVariables>,
queryRef: QueryReference<TData, TVariables> | null,
{
fetchMore: FetchMoreFunction<TData, TVariables>;
refetch: RefetchFunction<TData, TVariables>;
Expand Down Expand Up @@ -38,7 +38,7 @@ export function UseLoadableQueryResult() {
},
{
name: "queryRef",
type: "QueryReference<TData, TVariables>",
type: "QueryReference<TData, TVariables> | null",
description:
"The `queryRef` used by `useReadQuery` to read the query result.",
canonicalReference: "@apollo/client!QueryReference:interface",
Expand Down

0 comments on commit 66b958e

Please sign in to comment.