You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using the ShadCN Carousel in my Next.js app and trying to integrate it with server-side paginated API data.
The issue I’m facing is that the scrolling is not smooth—whenever new data is loaded, I notice a UI jump or flicker. It seems like the carousel recalculates the item sizes, causing an abrupt shift instead of a seamless transition.
Has anyone experienced this before? Is there a known solution or best practice for handling pagination smoothly in the ShadCN carousel?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Post:
Hello everyone,
I’m using the ShadCN Carousel in my Next.js app and trying to integrate it with server-side paginated API data.
The issue I’m facing is that the scrolling is not smooth—whenever new data is loaded, I notice a UI jump or flicker. It seems like the carousel recalculates the item sizes, causing an abrupt shift instead of a seamless transition.
Has anyone experienced this before? Is there a known solution or best practice for handling pagination smoothly in the ShadCN carousel?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions