question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSR render mismatch

See original GitHub issue

Just check the demo repo, you’ll have this error in console

image

At a first glance it seems that the problem could be connected to the “currentSlide” value. If you look close on page load none of the dots is marked as active, while after page refresh the first one is.

Setting { dots: false } on <agile> and restoring to true after mounted(), works as a temporary fix.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
altynbek07commented, Jul 10, 2020

@lukaszflorczak I have same problem. Are there any news? 🙃

0reactions
sinasitacommented, Aug 19, 2022

I had the same problem, it’s ugly, but I solved it with:

  <VueAgile
    :dots="showCarousel"
    :initial-slide="activeIndex"
    @before-change="onChangeSlide"
  >

  data() {
    return {
      showCarousel: false,
    };
  },
  mounted() {
      this.showCarousel = true;
  },

(Acutally I just realized, that @mfrascati already wrote, that it worked for him like that…)

Read more comments on GitHub >

github_iconTop Results From Across the Web

server side rendering and client mismatch · Issue #100 - GitHub
Background. Looking at the docs, it isn't entirely clear if server side rendering is supported. But I saw that @remirror/core depends on ...
Read more >
Handling the React server hydration mismatch error
How to resolve the server mismatch error when hydrating a shared React ... __WAS_SSR property (“was server-side rendered”) set by the app.
Read more >
React Server-side rendering error due to mismatch between ...
I am working on a React app (18.2.0 version to be exact), which uses server side rendering. On one of the pages, I...
Read more >
Hydration Mismatch - vite-plugin-ssr
A hydration mismatch is when the content rendered to HTML in Node.js is not the same than the content rendered in the browser....
Read more >
react-hydration-error - Next.js
When css-in-js libraries are not set up for pre-rendering (SSR/SSG) it will often lead to a hydration mismatch. In general this means the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found