Skip to content

Conversation

@baitun
Copy link
Contributor

@baitun baitun commented Dec 17, 2023

Currently result of useQuery have a type UseQueryReturn, but result of useLazyQuery doesn't have any type defined

This merge request fixes this by adding new interface UseLazyQueryReturn which is extending interface UseQueryReturn with load method

@baitun baitun marked this pull request as ready for review December 17, 2023 21:37
@asvishnyakov
Copy link

I'm interested in this fix too, but @baitun I think instead of '@apollo/client/core/index.js' it should be just ''@apollo/client/core'

@Akryum Akryum changed the title feat(useLazyQuery): add interface for lazy query return types(useLazyQuery): add interface for lazy query return Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants