compote-ui 0.56.0 → 0.56.1

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.
@@ -75,6 +75,9 @@ export function createTable(options) {
75
75
  // Notify consumers of visibility changes without taking control of the slice.
76
76
  // v9 setters are atom-aware, so we observe the reactive state instead of
77
77
  // overriding `onColumnVisibilityChange` (which would suppress internal updates).
78
+ // The callback runs untracked: it must only depend on the visibility atom,
79
+ // otherwise consumer-side reads (e.g. a persisted-state proxy the callback
80
+ // writes into) become dependencies of this effect and re-trigger it forever.
78
81
  if (options.onColumnVisibilityChange) {
79
82
  let first = true;
80
83
  $effect(() => {
@@ -83,7 +86,7 @@ export function createTable(options) {
83
86
  first = false;
84
87
  return;
85
88
  }
86
- options.onColumnVisibilityChange?.(visibility);
89
+ untrack(() => options.onColumnVisibilityChange?.(visibility));
87
90
  });
88
91
  }
89
92
  return table;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compote-ui",
3
- "version": "0.56.0",
3
+ "version": "0.56.1",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev --open",