hi all, I am trying to render dynamically by passing down breakPointCols props.
here is the prop obj
{
default: 5,
1000: 4,
900: 3,
640: 2,
}
When I am under 640px device, and I click refresh, it will first render the default 5 cols then it becomes 2. Anyone knows how to solve this? (message: I dont want to use another state to calculate if this mount is finished or not, if anyone could provide a faster solution for this :)) )
I am running on Next.JS project. Thank you very much!
hi all, I am trying to render dynamically by passing down breakPointCols props.
here is the prop obj { default: 5, 1000: 4, 900: 3, 640: 2, }
When I am under 640px device, and I click refresh, it will first render the default 5 cols then it becomes 2. Anyone knows how to solve this? (message: I dont want to use another state to calculate if this mount is finished or not, if anyone could provide a faster solution for this :)) )
I am running on Next.JS project. Thank you very much!