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

Why you dont get data from API actions? #4

Closed
tagmetag opened this issue Sep 25, 2017 · 2 comments
Closed

Why you dont get data from API actions? #4

tagmetag opened this issue Sep 25, 2017 · 2 comments

Comments

@tagmetag
Copy link

I see this file you get API directly: https://github.com/srhise/nuxt-wordpress-pwa/blob/master/pages/_slug/index.vue but in API file you have an action to get data for Single Post from API: https://github.com/srhise/nuxt-wordpress-pwa/blob/master/api/index.js
Why you dont get data from API actions?

@srhise
Copy link
Owner

srhise commented Sep 28, 2017

Because I was having issues with it. The asycData works so you get the API call before page render, thus SSR'ing the whole page's content. It an be improved.

@tagmetag
Copy link
Author

tagmetag commented Oct 2, 2017

Hope it for next Push. Thank you!

@tagmetag tagmetag closed this as completed Dec 9, 2017
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