-
Notifications
You must be signed in to change notification settings - Fork 51
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
SSR: Site isn't updated when post change content #7
Comments
Works for me. Are you sure your WP-API requests aren't cached? |
I found why. Somebody need to remove this line: nuxt-wordpress-pwa/api/index.js Line 71 in f24b424
It will be compiled to return console.log, not promise object ;/ in SSR mode. This is after you run "nuxt generate" somewhere in script.
|
Happy to accept a pull request.
Sean Hise
…On Fri, Jan 12, 2018 at 6:13 PM, Patryk ***@***.***> wrote:
I found why. Somebody need to remove this line: https://github.com/srhise/
nuxt-wordpress-pwa/blob/f24b4246c3459419d932f70c7caa08
18d044d350/api/index.js#L71
It will be compiled to return console.log, not promise object ;/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA3ywfLnlaqlxlv0owspFhDGsOzpTN9Hks5tJ-cCgaJpZM4RWXNA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested on HTTPS with worker.
Try:
Edit post and check if site generated by server have it. Open homepage to check it.
Next try add more post without re-generate whole site. Refresh homepage - no change. Go to category page - new post visible. Back - new post visible. Refresh - no new post ;(
The text was updated successfully, but these errors were encountered: