@streamscloud/kit 0.2.41-1778520098817 → 0.2.41-1778520520573

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.
@@ -19,8 +19,21 @@ const items = $derived(hideableColumns.map((col) => ({
19
19
  // Load from localStorage once columns are available
20
20
  let initialized = false;
21
21
  $effect(() => {
22
+ if (trackModelChange && storage) {
23
+ const saved = storage.get();
24
+ if (!saved || !Array.isArray(saved)) {
25
+ return;
26
+ }
27
+ untrack(() => {
28
+ if (!hideableColumns.length) {
29
+ return;
30
+ }
31
+ applyConfig(saved);
32
+ });
33
+ return;
34
+ }
22
35
  const columns = hideableColumns;
23
- if (!storage || columns.length === 0 || (initialized && !trackModelChange)) {
36
+ if (!storage || columns.length === 0 || initialized) {
24
37
  return;
25
38
  }
26
39
  initialized = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.2.41-1778520098817",
3
+ "version": "0.2.41-1778520520573",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",