@planetaexo/design-system 0.77.0 → 0.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11616,7 +11616,7 @@ function Picture(_a) {
11616
11616
  var _a2, _b2;
11617
11617
  const ref = React20.useRef(null);
11618
11618
  const [visible, setVisible] = React20.useState(eager);
11619
- const [loaded, setLoaded] = React20.useState(false);
11619
+ const [loaded, setLoaded] = React20.useState(eager);
11620
11620
  React20.useEffect(() => {
11621
11621
  if (eager || visible) return;
11622
11622
  const el = ref.current;
@@ -11636,7 +11636,10 @@ function Picture(_a) {
11636
11636
  io.observe(el);
11637
11637
  return () => io.disconnect();
11638
11638
  }, [eager, visible, rootMargin]);
11639
+ const prevSrcRef = React20.useRef(src);
11639
11640
  React20.useEffect(() => {
11641
+ if (prevSrcRef.current === src) return;
11642
+ prevSrcRef.current = src;
11640
11643
  setLoaded(false);
11641
11644
  }, [src]);
11642
11645
  const webp = webpVariantUrl(src);