@sellgar/kit 0.0.55 → 0.0.56

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7730,7 +7730,10 @@ const Hp = ({ ref: e, options: t, events: n, defer: i, ...r }) => {
7730
7730
  const l = M.useRef(null), [s, o] = Ju({ options: t, events: n, defer: i });
7731
7731
  return M.useImperativeHandle(e, () => l.current), M.useEffect(() => {
7732
7732
  l.current && s(l.current);
7733
- }, [s, l]), /* @__PURE__ */ m("div", { ref: l, ...r, children: r.children });
7733
+ }, [s, l]), M.useLayoutEffect(() => () => {
7734
+ var a;
7735
+ (a = o()) == null || a.destroy();
7736
+ }, []), /* @__PURE__ */ m("div", { ref: l, ...r, children: r.children });
7734
7737
  }, Vp = "_wrapper_1uv5g_1", Up = {
7735
7738
  wrapper: Vp
7736
7739
  }, Js = ({ ref: e, ...t }) => /* @__PURE__ */ m(Hp, { className: Up.wrapper, ...t, ref: e, children: t.children }), qp = "_wrapper_1s6pd_1", Bp = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sellgar/kit",
3
3
  "type": "module",
4
- "version": "0.0.55",
4
+ "version": "0.0.56",
5
5
  "description": "Storybook",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",