@ethanhann/mantine-dataview 0.4.1 → 0.4.2

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/dist/index.js CHANGED
@@ -91,16 +91,18 @@ function q(e, t) {
91
91
  }
92
92
  }) || console.warn("[@ethanhann/mantine-dataview] animateRows is enabled but the CSS keyframes are missing. Import \"@ethanhann/mantine-dataview/styles.css\" in your app entry."), a.current = !0);
93
93
  }, [t]);
94
- let o = e.map((e) => e.id), s = /* @__PURE__ */ new Set();
94
+ let o = e.map((e) => e.id), s = /* @__PURE__ */ new Set(), c = i.current;
95
95
  if (t && r.current) {
96
96
  let e = n.current, t = new Set(e);
97
- if (o.length !== e.length || o.some((t, n) => t !== e[n])) if (i.current++, o.length === e.length && o.every((e) => t.has(e))) for (let e of o) s.add(e);
97
+ if (o.length !== e.length || o.some((t, n) => t !== e[n])) if (c = i.current + 1, o.length === e.length && o.every((e) => t.has(e))) for (let e of o) s.add(e);
98
98
  else for (let e of o) t.has(e) || s.add(e);
99
99
  }
100
- return n.current = o, r.current = !0, {
100
+ return V(() => {
101
+ n.current = o, r.current = !0, i.current = c;
102
+ }), {
101
103
  rows: e,
102
104
  entering: s,
103
- generation: i.current
105
+ generation: c
104
106
  };
105
107
  }
106
108
  //#endregion