• Hook for applying advanced filters with debouncing and worker support

    Features:

    • Automatically debounces filter changes to avoid excessive processing
    • Uses worker threads when available for better performance
    • Tracks incremental diffs to skip unnecessary updates
    • Provides comprehensive error handling with fallback to main thread
    • Includes performance metrics for debugging

    Parameters

    • matches: MangaMatchResult[]

      The match array to filter

    • filters: AdvancedMatchFilters

      The filter criteria to apply

    • debounceMs: number = FILTER_DEBOUNCE_MS

      Debounce delay in milliseconds (default: 300ms)

    Returns UseAdvancedFilterResult

    Filter result with matches, stats, timing, and error info