Skip to content

Commit

Permalink
Merge pull request #1017 from Shrugsy/expose-useLazyQuerySubscription…
Browse files Browse the repository at this point in the history
…-on-api-endpoints

Expose `useLazyQuerySubscription` for individual endpoints
  • Loading branch information
markerikson authored Apr 25, 2021
2 parents e0886cd + 0277cc6 commit 9beabae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/query/react/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ export const reactHooksModule = ({
const {
useQuery,
useLazyQuery,
useLazyQuerySubscription,
useQueryState,
useQuerySubscription,
} = buildQueryHooks(endpointName)
safeAssign(anyApi.endpoints[endpointName], {
useQuery,
useLazyQuery,
useLazyQuerySubscription,
useQueryState,
useQuerySubscription,
})
Expand Down

0 comments on commit 9beabae

Please sign in to comment.