@algorithm-shift/design-system 1.3.102 → 1.3.103
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/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1876,6 +1876,11 @@ function useLazyDropdown(config) {
|
|
|
1876
1876
|
const allDataRef = (0, import_react20.useRef)([]);
|
|
1877
1877
|
const configRef = (0, import_react20.useRef)(config);
|
|
1878
1878
|
const PAGE_SIZE = config.pageSize || 10;
|
|
1879
|
+
(0, import_react20.useEffect)(() => {
|
|
1880
|
+
setOptions([]);
|
|
1881
|
+
setPage(1);
|
|
1882
|
+
setHasMore(true);
|
|
1883
|
+
}, [config.apiUrl]);
|
|
1879
1884
|
const uniqueOptions = (items) => {
|
|
1880
1885
|
const seen = /* @__PURE__ */ new Set();
|
|
1881
1886
|
return items.filter((item) => {
|