akiran / akiran/react-slick

SSR and responsive mode

Đang mở
#1,245 33 bình luận 26 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.