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

keep-alive router starting cached queries #27

Closed
Samuell1 opened this issue Jan 25, 2017 · 9 comments
Closed

keep-alive router starting cached queries #27

Samuell1 opened this issue Jan 25, 2017 · 9 comments
Assignees

Comments

@Samuell1
Copy link

Hey, I have some weird things happening. If I am using keep-alive on router apollo is doing cached requests from other routes.

Example:
If I open user route it's okay, but if I open other route from user route, apollo does the user route query again.

@Akryum Akryum added the bug label Jan 25, 2017
@Akryum Akryum self-assigned this Jan 25, 2017
@mcesar
Copy link

mcesar commented Feb 2, 2017

Is there any workaround for this problem?

@Samuell1
Copy link
Author

Samuell1 commented Feb 6, 2017

@mcesar i removed keep-alive for temp fix

@Akryum
Copy link
Member

Akryum commented Feb 20, 2017

Do you have a reproduction link?

@Samuell1
Copy link
Author

@Akryum i cant post repo its private, but i can create some example repo this week

@Samuell1
Copy link
Author

Samuell1 commented Apr 12, 2017

@Akryum i tested it with new versions, its still doing :/ i try to make some repo as i say

@Samuell1
Copy link
Author

Samuell1 commented Apr 27, 2017

vuejs/vue#5346 Maybe its because this? @Akryum

@Akryum
Copy link
Member

Akryum commented Aug 28, 2017

Please comment if you still have the issue.

@Akryum Akryum closed this as completed Aug 28, 2017
@valdoryu
Copy link

Hello everyone
I have the issue also using vue-apollo 3.0.0-beta.25

@samueleiche
Copy link

Hello
Same issue in our project using vue-apollo 3.0.7.
We solved it using skip() and $skipAll() - if our component is a view, we skip it if the active route is not the view route:

mySubscription: {
		skip() {
			return this.$route.name !== 'my.view.route.example'
		},
		...
},

But this is not a complete solution and we are looking to improve this workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants