SSENSE/vue-carousel

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

Open

#224 opened on Jun 20, 2018

View on GitHub
 (11 comments) (0 reactions) (0 assignees)JavaScript (1,705 stars) (513 forks)batch import
bughelp wantedquestion

Description

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)

Contributor guide