Preparing search index...

    Module useWarmSearchIndex

    useWarmSearchIndex - Idle-time fuzzy search index warming

    Rebuilds a corpus-keyed fuzzy search index during idle time whenever its corpus changes, so the expensive buildItemIndex pass runs off the critical path instead of synchronously on the user's first keystroke. Pairs with the makeItemIndexCache getters that back useTags / useIngredients: warming populates their WeakMap cache for the current corpus reference, turning the first real search into a cache hit.

    useWarmSearchIndex