Open oudoulj opened 4 years ago
I have a react-slick carousel loading a couple of images. I noticed that as soon as I add const { data, loading, error } = usePalette(url); to my code, images are loaded twice.
const { data, loading, error } = usePalette(url);
This can easily be witnessed/tested on that page https://codesandbox.io/s/react-slick-with-palette-53j28 by commenting out (or activating) line 19 (with usePalette, at this time of writing)
Is it a known issue and how can I prevent this ? Thank you !
I have a react-slick carousel loading a couple of images. I noticed that as soon as I add
const { data, loading, error } = usePalette(url);
to my code, images are loaded twice.This can easily be witnessed/tested on that page https://codesandbox.io/s/react-slick-with-palette-53j28 by commenting out (or activating) line 19 (with usePalette, at this time of writing)
Is it a known issue and how can I prevent this ? Thank you !