SSENSE/vue-carousel

Question: How can I render two carousel on one page with nuxt?

Open

#224 aperta il 20 giu 2018

Vedi su GitHub
 (11 commenti) (0 reazioni) (0 assegnatari)JavaScript (513 fork)batch import
bughelp wantedquestion

Metriche repository

Star
 (1705 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I have a problem with nuxt:

If I use two carousel into one page, I get this error you may have an infinite update loop in a component render function And the first carousel doesn't have correct width/height

The template is like:

<div>
    <no-ssr>
        <carousel>
            <slide>
                ...
            </slide
            <slide>
                ...
            </slide
        </carousel>
    </no-ssr>
    ...
    ...

    <no-ssr>
        <carousel>
            <slide>
                ...
            </slide
            <slide>
                ...
            </slide
        </carousel>
    </no-ssr>
</div>

And plugin:

import Vue from 'vue'

import VueCarousel from 'vue-carousel'

Vue.use(VueCarousel)

Guida contributor