Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added possibility to react on responsive prop changes #1377

Closed
wants to merge 1 commit into from

Conversation

rroslaniec
Copy link

Right now when we try to render react-slick on SSR with responsive prop it can be mismatch (on SSR react-slick rendering the biggest breakpoint). To fix that responsive prop can be attach to react-slick after mount on client - but react-slick do not react on that changes. This is simple fix for applying breakpoints over time.

@maddhruv
Copy link
Contributor

maddhruv commented Dec 7, 2018

hey @rroslaniec can you please tell me how can I regenerate the use case

@chiplay
Copy link

chiplay commented May 23, 2019

@rroslaniec I had the same issue and this worked for me: #1245 (comment)

@rroslaniec
Copy link
Author

uoh - that was really long time ago - basically - when I've SSR'ed slider (for example for full-hd screen) would be nice to trigger again calculations (because for example we wanna to display less elements on slider for 'tablet' view). That will cause re-render ofc but still we can recover from that kinda situations.

We at the end embedded slider with dynamic import

@rroslaniec rroslaniec closed this Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants