Preparing search index...
    • Refreshes a single item's similarItems against the current finder result. Filters out the item itself so a previously-added DB entry with the same name doesn't suggest itself.

      Type Parameters

      • TItem extends { name?: string; similarItems: TMatch[] }
      • TMatch extends { name: string }

      Parameters

      • setItems: Dispatch<SetStateAction<TItem[]>>
      • finder: (name: string) => TMatch[]
      • itemName: string

      Returns void