@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.mjs CHANGED
@@ -1778,6 +1778,11 @@ function useLazyDropdown(config) {
1778
1778
  const allDataRef = useRef4([]);
1779
1779
  const configRef = useRef4(config);
1780
1780
  const PAGE_SIZE = config.pageSize || 10;
1781
+ useEffect14(() => {
1782
+ setOptions([]);
1783
+ setPage(1);
1784
+ setHasMore(true);
1785
+ }, [config.apiUrl]);
1781
1786
  const uniqueOptions = (items) => {
1782
1787
  const seen = /* @__PURE__ */ new Set();
1783
1788
  return items.filter((item) => {