React-slick: useRef react hooks syncing issue.

Created on 5 Dec 2019  路  4Comments  路  Source: akiran/react-slick

I'm having trouble syncing two sliders together with react hooks. I'm not able to use this.slider and I'm not able to use the useRef hook properly. Does anyone have a workaround solution to this using React Hooks?

Most helpful comment

@eagle3y3 @naingoted I have this codesandbox working with hooks:
https://codesandbox.io/s/react-slick-playground-9kfgv

All 4 comments

Hi, @eagle3y3 did you manage to get it working using hooks ?

I'm facing this same issue. I want to sync two sliders, but I'm not able to sync them... I'm trying with useRef.

@eagle3y3 @naingoted I have this codesandbox working with hooks:
https://codesandbox.io/s/react-slick-playground-9kfgv

@eagle3y3 @naingoted I have this codesandbox working with hooks:
https://codesandbox.io/s/react-slick-playground-9kfgv

Thank you so much for this, been looking for AsNavFor using hooks for a while now! Going to implement this in a project when i get home :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rohitgoyal7 picture rohitgoyal7  路  3Comments

laveesingh picture laveesingh  路  3Comments

BradyEdgar94 picture BradyEdgar94  路  3Comments

PolGuixe picture PolGuixe  路  3Comments

jfamousket picture jfamousket  路  3Comments