@stream-io/feeds-client 0.2.3 → 0.2.4

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.
@@ -6422,7 +6422,9 @@ const useSearchResult = (sourceFromProps) => {
6422
6422
  const source = sourceFromProps ?? sourceFromContext;
6423
6423
  const { items, error, isLoading, hasNext } = useStateStore(source?.state, selector$2) ?? {};
6424
6424
  const loadMore = useStableCallback(async () => {
6425
- source?.search();
6425
+ if (hasNext) {
6426
+ source?.search();
6427
+ }
6426
6428
  });
6427
6429
  return react.useMemo(() => ({ items, error, isLoading, hasNext, loadMore }), [error, hasNext, isLoading, items, loadMore]);
6428
6430
  };