Skip to content

Commit

Permalink
Expose useLazyQuerySubscription for individual endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrugsy committed Apr 25, 2021
1 parent e0886cd commit 0277cc6
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 0277cc6

Please sign in to comment.