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

reFetchObservableQueries doesn't change networkStatus/loading #3981

Open
ivansky opened this issue May 19, 2020 · 0 comments
Open

reFetchObservableQueries doesn't change networkStatus/loading #3981

ivansky opened this issue May 19, 2020 · 0 comments

Comments

@ivansky
Copy link

ivansky commented May 19, 2020

How to reproduce the issue:
https://codesandbox.io/s/test-refetch-t0izv

Reason to use reFetchObservableQueries() is to pass proper Accept-Language when it's changed. And while it's loading I would like to show user that data is changing from one language to another. Now after changing language data is flicking with delay without any sign of loading. It's bad UX.

useOnChangeLanguage(() => {
  client.reFetchObservableQueries();
});

If example with language change is needed, I can create it, but it won't add more presentative example. Reproduce repo might be enough.

Intended outcome:
when reFetchObservableQueries is called
at least networkStatus should change from 7 (ready) to something else, e.g. 4 (refetch)

Actual outcome:
always

loading: false
networkStatus: 7
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

1 participant