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

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

Open
2 of 14 tasks
Evertvdw opened this issue Jun 18, 2021 · 4 comments
Open
2 of 14 tasks

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

Evertvdw opened this issue Jun 18, 2021 · 4 comments

Comments

@Evertvdw
Copy link
Contributor

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.

@rstoenescu
Copy link
Member

Hi,

There is a bug in Vue 3 in regards to the keep-alive component which in turn affects us. Haven't had the time to report it yet, but will post the link here once I do it.

@hawkeye64
Copy link
Member

vuejs/core#4817

@hawkeye64
Copy link
Member

@Evertvdw Can you test again? There have been several SSR/hydration fixes in Vue since this issue was added.

@Evertvdw
Copy link
Contributor Author

@hawkeye64 Yes, I just did. Issue is still there, the linked issue from the Vue repo is still not resolved either. In any case here is a reproduction link: https://codesandbox.io/s/competent-engelbart-dwfd7?file=/src/pages/Index.vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants