Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(useLazyQuery): add interface for lazy query return #1523

Merged
merged 2 commits into from
Jan 15, 2024

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