@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function useSearch

    • Searches the listed objects of db as the reader types, for a menu that asks on every keystroke (an editor's getMenu). A term is searched in the full-text index once typing pauses, its matches ordered by relevance; an empty term lists every listed object by label. A call a later one supersedes resolves to undefined.

      Parameters

      Returns (text: string) => Promise<undefined | SearchOption[]>