https://codesandbox.io/s/cocky-glitter-t6w26?file=/components/Builder.vue:445-454
Data is correctly mapped to each individual component
Data per component is offset by one - the first component incorrectly being empty and each component after that is using the incorrect payload
I think I have a similar issue.
I'm using a combination of dynamic routes and dynamic components and when the full static mode is activated the dynamic page does not load correctly (even though the payload is created and loaded by the browser).
Furthermore by loading another page and using the "back" functionality of the browser the dynamic page now loads correctly.
I've tried both asyncData and fetch with the same result.
v2.13.2
https://github.com/sp0ken/mini-repo
Access the following link: https://clever-bartik-6ecbae.netlify.app/matelas-140x200 images and rating component are not properly loaded.
Access the normal page by clicking one of the header icons, everything is loading properly. Go back to the previous using the browser back button, the page now loads correctly.
Components are correctly loaded
Components are not fully loaded and some are not even transformed (Cloudinary component is not correctly built onthe page)
Hello,
I'm having the same issue using a combination of dynamic routes and dynamic components, did you find any solution about it?
I'm very enthousiast about the full static mode but i'm now stopped in my development with this loading issue
Many thanks
As far as I've seen there's no way to resolve this. But I think running
"nuxt generate" instead of export will still emulate the old behavior
without payloads, which is more a workaround than a fix.
On Thu, 16 Jul 2020, 17:18 Axel, notifications@github.com wrote:
Hello,
I'm having the same issue using a combination of dynamic routes and
dynamic components, did you find any solution about it?I'm very enthousiast about the full static mode but i'm now stopped in my
development with this loading issueMany thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nuxt/nuxt.js/issues/7563#issuecomment-659481016, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADF5CF44IQVK32A7GGOL3DR34K3LANCNFSM4OCWML5A
.
I've had this issue too and it is stopping me from being able to develop a site.
In the reproduction, the \
The solution seems to either be to make isSsrHydration return false in this instance or not give the \
I also found this is sort-of an issue in Nuxt 2.12.
A setup where a component, which is loaded asynchronously (eg using await import()) also has a new-style fetch() function, it will call fetch() BOTH server-side and client-side again when hydrating.
If I change it to use a normal synchronous import, fetch() for the component is only called client side as it should.
Also note that this holds up if there is any parent for a component loaded using dynamic imports. The component which was calling fetch client-side where it wasn't needed in 2.12 itself was imported "normally", but it's parent was loaded dynamically by another component.
Quick update:
I've tested this issue with the newly released 2.14 version and it's still present.
Hi,
I will look at this, I know we have a big limitation with fetch and Vue 2 serverPrefetch that may lead to this issue since we cannot create a unique ID for each component, and it is problematic when having async components on client-side changing the order (they are waterfall on SSR).
Assigning to myself this issue and looking at it ASAP, but this may be really fixed in Nuxt 3 / Vue 3 combo.
@Atinux what did you find out with this? Fetch not returning the correct (or any) payload has meant we can’t really use fetch for anything useful.
Most helpful comment
Hi,
I will look at this, I know we have a big limitation with
fetchand Vue 2serverPrefetchthat may lead to this issue since we cannot create a unique ID for each component, and it is problematic when having async components on client-side changing the order (they are waterfall on SSR).Assigning to myself this issue and looking at it ASAP, but this may be really fixed in Nuxt 3 / Vue 3 combo.