@trackunit/react-components 2.10.9 → 2.10.10
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.cjs.js +14 -0
- package/index.esm.js +14 -0
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -12604,6 +12604,13 @@ const useHashParamSync = ({ key, enabled = true, onExternalChange, replace: repl
|
|
|
12604
12604
|
if (lastWrittenRef.current === undefined) {
|
|
12605
12605
|
return;
|
|
12606
12606
|
}
|
|
12607
|
+
// A caller may have primed `lastWrittenRef` via `updateHashParam` while the
|
|
12608
|
+
// URL still carries the previous value (queued rAF / router pending). Treating
|
|
12609
|
+
// that stale URL as an external change reloads filter state from persistence
|
|
12610
|
+
// and can clear in-progress search input before the write lands.
|
|
12611
|
+
if (pendingWriteRef.current !== null) {
|
|
12612
|
+
return;
|
|
12613
|
+
}
|
|
12607
12614
|
requestAnimationFrame(() => {
|
|
12608
12615
|
onExternalChangeRef.current?.();
|
|
12609
12616
|
});
|
|
@@ -12889,6 +12896,13 @@ const useSearchParamSync = ({ key, enabled = true, onExternalChange, replace: re
|
|
|
12889
12896
|
if (lastWrittenRef.current === undefined) {
|
|
12890
12897
|
return;
|
|
12891
12898
|
}
|
|
12899
|
+
// A caller may have primed `lastWrittenRef` via `updateSearchParam` while the
|
|
12900
|
+
// URL still carries the previous value (queued rAF / router pending). Treating
|
|
12901
|
+
// that stale URL as an external change reloads filter state from persistence
|
|
12902
|
+
// and can clear in-progress search input before the write lands.
|
|
12903
|
+
if (pendingWriteRef.current !== null) {
|
|
12904
|
+
return;
|
|
12905
|
+
}
|
|
12892
12906
|
requestAnimationFrame(() => {
|
|
12893
12907
|
onExternalChangeRef.current?.();
|
|
12894
12908
|
});
|
package/index.esm.js
CHANGED
|
@@ -12603,6 +12603,13 @@ const useHashParamSync = ({ key, enabled = true, onExternalChange, replace: repl
|
|
|
12603
12603
|
if (lastWrittenRef.current === undefined) {
|
|
12604
12604
|
return;
|
|
12605
12605
|
}
|
|
12606
|
+
// A caller may have primed `lastWrittenRef` via `updateHashParam` while the
|
|
12607
|
+
// URL still carries the previous value (queued rAF / router pending). Treating
|
|
12608
|
+
// that stale URL as an external change reloads filter state from persistence
|
|
12609
|
+
// and can clear in-progress search input before the write lands.
|
|
12610
|
+
if (pendingWriteRef.current !== null) {
|
|
12611
|
+
return;
|
|
12612
|
+
}
|
|
12606
12613
|
requestAnimationFrame(() => {
|
|
12607
12614
|
onExternalChangeRef.current?.();
|
|
12608
12615
|
});
|
|
@@ -12888,6 +12895,13 @@ const useSearchParamSync = ({ key, enabled = true, onExternalChange, replace: re
|
|
|
12888
12895
|
if (lastWrittenRef.current === undefined) {
|
|
12889
12896
|
return;
|
|
12890
12897
|
}
|
|
12898
|
+
// A caller may have primed `lastWrittenRef` via `updateSearchParam` while the
|
|
12899
|
+
// URL still carries the previous value (queued rAF / router pending). Treating
|
|
12900
|
+
// that stale URL as an external change reloads filter state from persistence
|
|
12901
|
+
// and can clear in-progress search input before the write lands.
|
|
12902
|
+
if (pendingWriteRef.current !== null) {
|
|
12903
|
+
return;
|
|
12904
|
+
}
|
|
12891
12905
|
requestAnimationFrame(() => {
|
|
12892
12906
|
onExternalChangeRef.current?.();
|
|
12893
12907
|
});
|