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

LazyHydrate not work for me #117

Open
nekooee opened this issue Oct 24, 2021 · 3 comments
Open

LazyHydrate not work for me #117

nekooee opened this issue Oct 24, 2021 · 3 comments

Comments

@nekooee
Copy link

nekooee commented Oct 24, 2021

Hi,
I used the LazyHydrate as follows but But in all cases, even "never" immediately runs the slideshow and the photos are displayed. What is the reason?

<template>
    <LazyHydrate when-idle>
        <header-slide-show :laravel-slides="images" :rtl="rtl"></header-slide-show>
    </LazyHydrate>
</template>

<script>
import LazyHydrate from 'vue-lazy-hydration';

export default {
    components: {
        LazyHydrate,
        headerSlideShow: () => import('./headerSlideShow'),
    },
    props: [
        'images', 'rtl'
    ],
    name: "loadHeaderSlideShow"
}
</script>
@DavidGolodetsky
Copy link

DavidGolodetsky commented Nov 3, 2021

Maybe you're looking for lazy-loaded components because this package is for lazy-hydration. Meaning that your content is generated on server-side and shown immediately, but its "interactivity" is applied later.

@nekooee
Copy link
Author

nekooee commented Nov 3, 2021

Maybe you're looking for lazy-loaded components because this package is for lazy-hydration. Meaning that your content is generated on server-side and shown immediately, but its "interactivity" is applied later.

Hi,
Do you mean that this package is only for ssr?

@DavidGolodetsky
Copy link

DavidGolodetsky commented Nov 3, 2021

Yup, it's from the package dscription:

This plugin will not work as advertised if you're not using it in combination with SSR. Although it should work with every pre-rendering approach (like Prerender SPA Plugin, Gridsome, ...) I've only tested it with Nuxt.js so far.

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