@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 +6 -0
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -38082,6 +38082,12 @@ function ViewSwitcher({
|
|
|
38082
38082
|
const pageSize = pageSizeAsked ?? (embedded ? EMBEDDED_PAGE_SIZE : 200);
|
|
38083
38083
|
const [layout, setLayout] = useState106(view.layout);
|
|
38084
38084
|
const [local, setLocal] = useState106({});
|
|
38085
|
+
const viewSignature = JSON.stringify(view);
|
|
38086
|
+
const [seenSignature, setSeenSignature] = useState106(viewSignature);
|
|
38087
|
+
if (seenSignature !== viewSignature) {
|
|
38088
|
+
setSeenSignature(viewSignature);
|
|
38089
|
+
if (Object.keys(local).length > 0) setLocal({});
|
|
38090
|
+
}
|
|
38085
38091
|
useEffect86(() => {
|
|
38086
38092
|
setLayout(view.layout);
|
|
38087
38093
|
setLocal({});
|