@snowcone-app/ui 0.4.10 → 0.4.11

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
@@ -5945,7 +5945,10 @@ function RealtimeProvider({
5945
5945
  if (isFullRect(result.cropRect)) {
5946
5946
  if (firstSight && sessionLive) {
5947
5947
  processedFrameRef.current.set(result.mockupId, result.imageUrl);
5948
- backgroundsRef.current.set(result.mockupId, { url: result.imageUrl });
5948
+ const imgPromise = loadImageElement(result.imageUrl);
5949
+ imgPromise.catch(() => {
5950
+ });
5951
+ backgroundsRef.current.set(result.mockupId, { url: result.imageUrl, imgPromise });
5949
5952
  }
5950
5953
  displayable.push(result);
5951
5954
  } else if (firstSight && sessionLive) {