When watchCSS Flickity option is set to true, first render will ignore it and flickity carousel will be active instead of staying disabled. Proper behaviour is fixed by resizing the window.
I believe this is because flickity activate()method is called on componentDidUpdate(), even if it has never been activated before.
A possible fix could be to call activate() only if it was previously activated before (this.isActive === true).
When
watchCSS
Flickity option is set totrue
, first render will ignore it and flickity carousel will be active instead of staying disabled. Proper behaviour is fixed by resizing the window.I believe this is because flickity
activate()
method is called oncomponentDidUpdate()
, even if it has never been activated before.A possible fix could be to call
activate()
only if it was previously activated before (this.isActive === true
).