@sledge-app/react-instant-search 0.0.45 → 0.0.47
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.
|
@@ -1234,7 +1234,7 @@ const Rating = React__default.memo((props) => {
|
|
|
1234
1234
|
scrollToElement(document.getElementById(ELEMENT_ID.PRODUCT_REVIEW.ELEMENT_WIDGET), 50);
|
|
1235
1235
|
}, 200);
|
|
1236
1236
|
};
|
|
1237
|
-
React__default.
|
|
1237
|
+
React__default.useMemo(() => {
|
|
1238
1238
|
if (!(isRenderApp == null ? void 0 : isRenderApp.productReview))
|
|
1239
1239
|
return;
|
|
1240
1240
|
if (size === "xs") {
|
|
@@ -1256,7 +1256,6 @@ const Rating = React__default.memo((props) => {
|
|
|
1256
1256
|
let isProductIdChanged = Boolean(previousState && (previousState == null ? void 0 : previousState.productId) !== productId);
|
|
1257
1257
|
if (isProductIdChanged)
|
|
1258
1258
|
setIsFirstLoading(true);
|
|
1259
|
-
console.log("ke re-render");
|
|
1260
1259
|
handleSettings(localStorage.getItem(LOCAL_STORAGE_KEY.PRODUCT_REVIEW_SETTING) || "");
|
|
1261
1260
|
}, [isRenderApp, productId]);
|
|
1262
1261
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__rating", onClick: handleOnClick, children: isFirstLoading && withSkeletonLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "230px", height: "28px", color: "grey-100", rounded: "md" }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|