ChemPal Documentation - v0.0.0
    Preparing search index...
    • React v19 enhanced search hook that maintains streaming behavior.

      This version preserves the original streaming approach where results appear in the table as they're found, with live counter updates, AND restores session persistence so results are maintained across page reloads.

      Key improvements over original:

      • Uses startTransition for better performance
      • Better error handling
      • Streaming results with immediate UI updates
      • Live result counter that updates as results arrive
      • Session persistence restored (loads previous results on mount)

      Returns {
          searchResults: Product[];
          isLoading: boolean;
          statusLabel: string | boolean;
          error: undefined | string;
          resultCount: number;
          executeSearch: (query: string) => void;
          handleStopSearch: () => void;
          tableText: string;
      }