@sledge-app/react-instant-search 0.0.44 → 0.0.45
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.
|
@@ -1256,6 +1256,7 @@ 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");
|
|
1259
1260
|
handleSettings(localStorage.getItem(LOCAL_STORAGE_KEY.PRODUCT_REVIEW_SETTING) || "");
|
|
1260
1261
|
}, [isRenderApp, productId]);
|
|
1261
1262
|
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: [
|