yaodingyd / react-flickity-component

A React.js component for using @desandro's Flickity
314 stars 51 forks source link

Force reload #125

Closed lastant closed 5 months ago

lastant commented 3 years ago

Is it possible to force reload? I tried using reloadOnUpdate, but it reloads on each state change, and I'd like to have more control, make it reload conditionally, at least being able to specify dependency values.

gpoole commented 1 year ago

I think the current behaviour of reloadOnUpdate is not totally what you'd expect. I've looked into it and there is a workaround I've suggested here to get it to act like you're describing: https://github.com/yaodingyd/react-flickity-component/issues/147