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

useLazyQuery typescript error called is always true after upgrading from 3.4.17 -> 3.5.4 #9102

Closed
anark opened this issue Nov 22, 2021 · 2 comments
Assignees

Comments

@anark
Copy link
Contributor

anark commented Nov 22, 2021

Intended outcome:

const [query, {called}] = useLazyQuery() the called variable should have typescript boolean type

Actual outcome:

called variable has typescript type true

How to reproduce the issue:

Versions

  System:
    OS: macOS 12.0.1
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 3.0.0 - ~/Development/sky-pilot/node_modules/.bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
  Browsers:
    Chrome: 95.0.4638.69
    Safari: 15.1
  npmPackages:
    @apollo/client: 3.5.4 => 3.5.4 
    @apollo/react-testing: 4.0.0 => 4.0.0 
@brainkim brainkim self-assigned this Nov 22, 2021
@anark
Copy link
Contributor Author

anark commented Jan 5, 2022

Still seeing this on 3.5.6. Any ideas for a fix for this?

@benjamn
Copy link
Member

benjamn commented Jan 31, 2022

The typing of called should be fixed in v3.5.8, thanks to #9328.

@benjamn benjamn closed this as completed Jan 31, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants