@infinite-table/infinite-react 6.2.6 → 6.2.8

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/index.dev.js CHANGED
@@ -5484,6 +5484,9 @@ function HeadlessTable(props) {
5484
5484
  requestAnimationFrame(() => {
5485
5485
  const scrollVarHost = scrollVarHostRef?.current;
5486
5486
  if (!scrollVarHost) {
5487
+ if (!domRef.current) {
5488
+ return;
5489
+ }
5487
5490
  domRef.current.style.setProperty(
5488
5491
  "transform",
5489
5492
  `translate3d(${-scrollPos.scrollLeft}px, ${-scrollPos.scrollTop}px, 0px)`
@@ -16871,7 +16874,8 @@ var warnIncorrectTreeFilterOnce = once(() => {
16871
16874
  Your filtering function probably looks like this:
16872
16875
 
16873
16876
  function treeFilterFunction({ data }) {
16874
- data.children = data.children.filter(...) // <-- THIS MUTATION IS NOT SUPPORTED!
16877
+ data.children = data.children.filter(...) // <-- THIS MUTATION IS NOT SUPPORTED (data.children = ...)!
16878
+
16875
16879
  return data
16876
16880
  }
16877
16881
 
@@ -23593,7 +23597,7 @@ var useLicense = (licenseKey = "") => {
23593
23597
  }
23594
23598
  let valid2 = isValidLicense(licenseKey, {
23595
23599
  publishedAt: 1624970570587,
23596
- version: "6.2.6"
23600
+ version: "6.2.8"
23597
23601
  });
23598
23602
  if (!licenseKey && !valid2 && isInsidePlayground) {
23599
23603
  return true;
package/index.dev.mjs CHANGED
@@ -5425,6 +5425,9 @@ function HeadlessTable(props) {
5425
5425
  requestAnimationFrame(() => {
5426
5426
  const scrollVarHost = scrollVarHostRef?.current;
5427
5427
  if (!scrollVarHost) {
5428
+ if (!domRef.current) {
5429
+ return;
5430
+ }
5428
5431
  domRef.current.style.setProperty(
5429
5432
  "transform",
5430
5433
  `translate3d(${-scrollPos.scrollLeft}px, ${-scrollPos.scrollTop}px, 0px)`
@@ -16820,7 +16823,8 @@ var warnIncorrectTreeFilterOnce = once(() => {
16820
16823
  Your filtering function probably looks like this:
16821
16824
 
16822
16825
  function treeFilterFunction({ data }) {
16823
- data.children = data.children.filter(...) // <-- THIS MUTATION IS NOT SUPPORTED!
16826
+ data.children = data.children.filter(...) // <-- THIS MUTATION IS NOT SUPPORTED (data.children = ...)!
16827
+
16824
16828
  return data
16825
16829
  }
16826
16830
 
@@ -23551,7 +23555,7 @@ var useLicense = (licenseKey = "") => {
23551
23555
  }
23552
23556
  let valid2 = isValidLicense(licenseKey, {
23553
23557
  publishedAt: 1624970570587,
23554
- version: "6.2.6"
23558
+ version: "6.2.8"
23555
23559
  });
23556
23560
  if (!licenseKey && !valid2 && isInsidePlayground) {
23557
23561
  return true;