@sledge-app/react-instant-search 0.0.43 → 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.
|
@@ -629,7 +629,7 @@ const addToCartTrigger$1 = async (data) => {
|
|
|
629
629
|
};
|
|
630
630
|
const ButtonDetail = "";
|
|
631
631
|
const Trigger$1 = "";
|
|
632
|
-
const Trigger = (props) => {
|
|
632
|
+
const Trigger = React__default.memo((props) => {
|
|
633
633
|
var _a, _b, _c;
|
|
634
634
|
const { data, forceActive = false, hidden = false, onAfterAddWishlist, onAfterRemoveWishlist } = props;
|
|
635
635
|
const { productId, productVariantId } = data || {};
|
|
@@ -779,7 +779,7 @@ const Trigger = (props) => {
|
|
|
779
779
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(HeartIcon, { width: 16.67, height: 15.83, type: typeIcon, color: colorIcon })
|
|
780
780
|
}
|
|
781
781
|
) }) });
|
|
782
|
-
};
|
|
782
|
+
});
|
|
783
783
|
const Widget$1 = "";
|
|
784
784
|
const WidgetHeaderClearTrigger = ({ buttonText, shareId, dataSettings, isFirstLoading }) => {
|
|
785
785
|
var _a, _b, _c, _d, _e;
|
|
@@ -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: [
|