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

Next.js - issue with responsive (wrong breakpoint for a moment)

Open tomaszdanczak opened this issue 1 year ago • 4 comments

In Next.js project when I refresh the page on mobile settings for the largest breakpoint are applied for a while.

Replication here.

2023-10-30 12 23 40

Noticed the same problem in example from documentation (Gatsby project).

2023-10-30 12 26 42

tomaszdanczak avatar Oct 30 '23 11:10 tomaszdanczak

I'm having the same problem

sstone2423 avatar Nov 01 '23 17:11 sstone2423

it happens because it is rendered on clientside, when your page loads it loads default breakpoint first and then it loads the actual breakpoint (useEffect hell)

fl1k avatar Nov 05 '23 06:11 fl1k

did you find any solution?

lucaspieran avatar Nov 14 '23 15:11 lucaspieran

need to implement mobileFirst setting of slick

akiran avatar Jan 19 '24 07:01 akiran