Closed ouzy closed 4 years ago
Since you are updating your content you should remove the static
prop. static
prevents you from changing the content in the future but improves server side rendering.
You could also add the reloadOnUpdate
prop but this will re render Flickity completely. This may lead to flickering.
`render() { const flickityOptions = { initialIndex: 0, autoPlay: 10000, prevNextButtons: false, adaptiveHeight: false, wrapAround: true }
I have an app that pulls from an api at an interval, and every once in a while on an app data update, I get this error. I looked at https://github.com/theolampert/react-flickity-component/issues/41 but didn't find any answers there. I'm confused as to how to implement "Run reloadCells and resize on componentDidUpdate" if that is the solution.