akiran / akiran/react-slick

SSR and responsive mode

オープン
#1,245 コメント 33 件 リアクション 26 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。