-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[2.14.0] Static Payload not applying to <nuxt-child> children components in some cases #7799
Comments
Same error here. I will try to give more infos and another example repo soon too. |
I can confirm the issue, same behaviour as stated in description. |
Until this issue is resolved, we've opted for calling
|
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
I can confirm that this issue still persists with the latest release, unfortunately. |
I also faced this bug. Is there any update? |
Thanks for your contribution to Nuxt!
Issues that are labeled as |
Issue is still occurring with the latest versions, unfortunately.
…On Sun, 6 Dec 2020, 06:54 stale[bot], ***@***.***> wrote:
Thanks for your contribution to Nuxt!
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:
1. Verify that you can still reproduce the issue in the latest version
of nuxt-edge
2. Comment the steps to reproduce it
Issues that are labeled as pending will not be automatically marked as
stale.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7799 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADF5CESMMMEE5UTFJJAV3TSTMMALANCNFSM4PKVKPVA>
.
|
I'm so much following this as I'm experiencing the same issues. For me, it appears that some variables are fetched, like {{article.name}} but if want to more in depth like {{article.image.formats.large.url}} I'll get a undefined on formats unless it as a parameter. Which works until I refresh and break everything to an apollo error 400. Kind of annoying :/ |
Closed in #8466. Would appreciate testing via |
May be related to #7791
Nuxt payloads do not always apply correct in generated apps with
target: static
, ifnuxt-child
is used, and both a child component of the higher-level component, and one of the children ofnuxt-child
implementfetch()
(see diagram below)Versions
Reproduction
Source: https://github.com/FreekVR/nuxt-static-repro/tree/nested-fetch-issues
Demo: https://wonderful-ardinghelli-e41a6b.netlify.app/magazine/category/bar/
This will have correctly generated data on first (hard) load, but clicking the link-links present on the page will show that in SPA mode, the payload data is not applying afterwards.
This seems to be caused by the fetch() in this component, which is included in the nuxt-child parent component.
Steps to reproduce
Have an application implementing a structure like below (see repro source for practical implementation)
What is Expected?
Data is correctly applied from the payload when navigating through SPA links
What is actually happening?
Data is not applied / lost
The text was updated successfully, but these errors were encountered: