@algorithm-shift/design-system 1.2.989 → 1.2.990

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 CHANGED
@@ -2061,10 +2061,10 @@ function useLazyDropdown(config) {
2061
2061
  (0, import_react20.useEffect)(() => {
2062
2062
  if (config.initialData?.length) {
2063
2063
  allDataRef.current = config.initialData;
2064
- loadPage(1, "");
2065
2064
  }
2066
2065
  }, [config.initialData]);
2067
2066
  (0, import_react20.useEffect)(() => {
2067
+ if (config.fetchOnMount) loadPage(1, "");
2068
2068
  return () => {
2069
2069
  if (debounceTimer.current) clearTimeout(debounceTimer.current);
2070
2070
  };