Mike Smart
Results
4
comments of
Mike Smart
+1 on an arbitrary data type, for example a JSON dump of translations, which we don’t need to stringify and parse each time
You can use Webpack `ProvidePlugin` to give the bundle the reference to Flickity in the browser, while not importing it for the server ``` js new webpack.ProvidePlugin({ Flickity: 'flickity', })...
This is similar to #488 – I handle the addition/removing cells in React though, if the props that I'm rendering my children with, I call `reloadCells` and `updatePageDots` if needed
This is probably relevant here too: https://github.com/metafizzy/flickity/pull/488#issuecomment-339361054