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

Disable FetchData on certain routes #665

Closed
nikklass opened this issue Oct 28, 2021 · 1 comment
Closed

Disable FetchData on certain routes #665

nikklass opened this issue Oct 28, 2021 · 1 comment

Comments

@nikklass
Copy link

Hi,

I have implemented vue-auth for my authentication. When a user logs in, fetchData method that fetches user details is called. Each time a user navigates to a different route, fetchData method is called each time.
Is there a way I can prevent fetchData from being called on certain routes, but still gets called on others?

@websanova
Copy link
Owner

Hmm, bit strange it's doing it on each route, should only be on the initial load, you may have to check your setup there.

Though you can also just disable it all together and do it manually as well.

https://websanova.com/docs/vue-auth/options/core#fetchdata

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

No branches or pull requests

2 participants