Skip to content

SSR hydration error when using keep-alive in QCarousel #9712

@Evertvdw

Description

@Evertvdw

Describe the bug
When using keep-alive in the QCarousel with SSR it results in an hydration error.

Example code:

 <q-carousel
      animated
      :model-value="1"
      arrows
      navigation
      infinite
      keep-alive
      style="width: 400px"
    >
      <q-carousel-slide :name="1" img-src="https://cdn.quasar.dev/img/mountains.jpg" />
      <q-carousel-slide :name="2" img-src="https://cdn.quasar.dev/img/parallax1.jpg" />
      <q-carousel-slide :name="3" img-src="https://cdn.quasar.dev/img/parallax2.jpg" />
      <q-carousel-slide :name="4" img-src="https://cdn.quasar.dev/img/quasar.jpg" />
    </q-carousel>

To Reproduce
Steps to reproduce the behavior:

  1. Create fresh starter project
  2. Add above code to Index.vue html.
  3. Run quasar SSR mode quasar dev -m ssr
  4. See error

Expected behavior
No hydration error

Platform (please complete the following information):
Quasar Version: v2.0.0-rc.3
@quasar/app Version: v3.0.0-rc.3
Quasar mode:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

Tested on:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

OS:
Node:
NPM:
Yarn:
Browsers:
iOS:
Android:
Electron:

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions