@ai-matrx/records-ui 0.115.53 → 0.115.54

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.115.54
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.115.53..npm/records-ui/v0.115.54 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.115.53
4
10
 
5
11
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -38218,6 +38218,12 @@ function ViewSwitcher({
38218
38218
  const pageSize = pageSizeAsked ?? (embedded ? import_first_page5.EMBEDDED_PAGE_SIZE : 200);
38219
38219
  const [layout, setLayout] = (0, import_react224.useState)(view.layout);
38220
38220
  const [local, setLocal] = (0, import_react224.useState)({});
38221
+ const viewSignature = JSON.stringify(view);
38222
+ const [seenSignature, setSeenSignature] = (0, import_react224.useState)(viewSignature);
38223
+ if (seenSignature !== viewSignature) {
38224
+ setSeenSignature(viewSignature);
38225
+ if (Object.keys(local).length > 0) setLocal({});
38226
+ }
38221
38227
  (0, import_react224.useEffect)(() => {
38222
38228
  setLayout(view.layout);
38223
38229
  setLocal({});