@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/CHANGELOG.md +6 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/patterns/RealtimeProvider.tsx +13 -2
- package/src/patterns/__tests__/RealtimeProvider.cropDelivery.test.tsx +21 -0
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
|
-
|
|
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) {
|