react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Prop `data-index` did not match. Server: "-5" Client: "-3"

Open krean93 opened this issue 6 years ago • 6 comments

I am using Next JS for SSR.

When I implement responsive breakpoints, I get this warning: Prop data-index did not match. Server: "-5" Client: "-3"

My code looks like this: const settings = { dots: true, dotsClass: "custom-dots", infinite: true, speed: 500, slidesToShow: 5, slidesToScroll: 5, nextArrow: <NextArrow />, prevArrow: <PrevArrow />, appendDots: dots => ( <div> <ul style={{ margin: "0px" }}> {dots} </ul> </div> ), customPaging: function(i) { return ( <span className="custom-dot"></span> ); }, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll: 2, } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] };

image

Could someone please point out how can this be solved? Thanks in advance!

krean93 avatar Apr 12 '18 14:04 krean93

I have the same issue with nextjs & ssr. Is there any ssr setting for slick?

schang124 avatar Jul 17 '18 02:07 schang124

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 12 '19 03:07 stale[bot]

I have the same issue too, is there any help?

zhangjing28 avatar Jul 19 '19 02:07 zhangjing28

Same problem here, anyone knows how to fix it?

linkurzweg avatar Jul 22 '20 12:07 linkurzweg

same problem with me as well... 3 years and no help???

bobinska-dev avatar Jun 11 '21 16:06 bobinska-dev

same problem :(

bekhzodx64 avatar Jan 26 '22 17:01 bekhzodx64