@myinterview/widget-react 1.0.52-experimental-3 → 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/cjs/index.js CHANGED
@@ -32392,7 +32392,9 @@ const PreviewItem = ({ blob, onSelectVideo, isSelected, position, currentIndex,
32392
32392
  const handleItemRef = React.useCallback((node) => {
32393
32393
  itemRef.current = node;
32394
32394
  transformX.current = calcTranformX();
32395
- setIsRendered(true);
32395
+ requestAnimationFrame(() => {
32396
+ setIsRendered(true);
32397
+ });
32396
32398
  }, []);
32397
32399
  const onVideoError = (e) => {
32398
32400
  SentryTrackingFn(e, { blobUrl: blob }, 'PREVIEW_VIDEO_FAILED', 'error');