akiran / akiran/react-slick

SSR and responsive mode

Ouverte
#1,245 33 commentaires 26 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
11.9k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I already open [this issue on the nextjs repo](https://github.com/zeit/next.js/issues/4398) but it seems to be a problem with react-slick.

**Describe the bug**
When I use next.js with react-slick and responsive options, there is a bug during the rehydration phase, the src attribute of the images are mixed between the slides.

The error message is `Warning: Prop src did not match. Server: "http://via.placeholder.com/350x150?text=7" Client: "http://via.placeholder.com/350x150?text=8"`

**To Reproduce**
I made an example from examples folder : https://github.com/padupuy/next.js/tree/feature/with-react-slick

The code is right here : https://github.com/padupuy/next.js/blob/feature/with-react-slick/examples/with-react-slick/pages/index.js

**Expected behavior**
The image sources must *not* be mixed

**Screenshots**
capture d ecran 2018-05-16 a 18 29 07
![capture d ecran 2018-05-16 a 18 31 01](https://user-images.githubusercontent.com/715255/40130439-5294913a-5937-11e8-914e-2532e1927e40.png)

**System information**
- OS: macOS High Sierra 10.13.4
- Browser (if applies) : at least chrome and safari
- Version of Next.js: at least 5.1 and 6.0.2

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.