Skip to content

Nextjs server components with carousel as child client component does not work on first render #956

Open
@rubenstolk

Description

@rubenstolk
  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. Create a simple nextjs app having a main page (server component) with a child element that is "use client" and renders a simple Carousel
  2. Try to navigate the carousel, everything seems to work except the scrolling of the items, so visibly it looks like the carousel doesn't work at all

Current behavior

No scroll of the carousel visible at first render, when browsing to another page and coming back to the page with the carousel, it suddenly works fine.

Expected behavior

Should scroll

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't workingconfirmedThis bug was confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions