Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

useQuery error is undefined if another useQuery polls changed data #3399

Closed
oleksandrkryvosheiev opened this issue Aug 21, 2019 · 1 comment

Comments

@oleksandrkryvosheiev
Copy link

Intended outcome:

Display useQuery error

Actual outcome:

useQuery error is undefined

How to reproduce the issue:

https://github.com/AlexandrKrivosheev/apollo-poll-undefined-error-example

use query X that returns error, use query Y that polls changed data (like current time)
query X error becomes undefined when Y query polled changed data

Version

System:
OS: macOS 10.14.6
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
Yarn: 1.17.3 - ~/.nvm/versions/node/v10.15.3/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
Browsers:
Chrome: 76.0.3809.100
Safari: 12.1.2
npmPackages:
apollo-cache-inmemory: ^1.6.3 => 1.6.3
apollo-client: ^2.6.4 => 2.6.4
apollo-link-http: ^1.5.5 => 1.5.5
react-apollo: ^3.0.1 => 3.0.1

@hwillson
Copy link
Member

hwillson commented Sep 6, 2019

This should be fixed by #3419 and is available in React Apollo 3.1.0. Thanks!

@hwillson hwillson closed this as completed Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants