Skip to content

Conversation

@NataliaTepluhina
Copy link
Member

Close #492

Currently, when the component is fetching data from the cache, the nextResult method is called explicitly by executeApollo when loading is not false. This doesn't involve Apollo Observable subscription and leads to calling query result hook twice: once by executeApollo and once by observer.next

This PR attempts to fix this behaviour

@MaevskiyE
Copy link

@Akryum , I really need this change. Could you please share your thoughts about when it will be merged?
Thank you

@Akryum Akryum merged commit 8fbfc38 into vuejs:dev Feb 11, 2021
@Akryum
Copy link
Member

Akryum commented Feb 11, 2021

I will need to revert this, it's breaking apps using Apollo Client 3. 👀

@Akryum
Copy link
Member

Akryum commented Feb 11, 2021

Reverted for Apollo Client 3: bda6d96

@MaevskiyE
Copy link

@Akryum , will it be somehow fixed?
Even in 3.0.7 it doesn't work

@Akryum
Copy link
Member

Akryum commented Mar 12, 2021

Sorry but this breaks vue-apollo with Apollo Client 3 so I reverted the change.

@MaevskiyE
Copy link

I understood. Maybe you have any suggestion?

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