@myinterview/widget-react 1.0.52-experimental-2 → 1.0.52-experimental-4

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/esm/index.js CHANGED
@@ -32366,7 +32366,9 @@ const PreviewItem = ({ blob, onSelectVideo, isSelected, position, currentIndex,
32366
32366
  const handleItemRef = useCallback((node) => {
32367
32367
  itemRef.current = node;
32368
32368
  transformX.current = calcTranformX();
32369
- setIsRendered(true);
32369
+ requestAnimationFrame(() => {
32370
+ setIsRendered(true);
32371
+ });
32370
32372
  }, []);
32371
32373
  const onVideoError = (e) => {
32372
32374
  SentryTrackingFn(e, { blobUrl: blob }, 'PREVIEW_VIDEO_FAILED', 'error');