Preparing search index...

    Function useShopping

    • Returns the computed shopping list derived from unchecked menu items.

      The shopping list is recalculated synchronously on every render where any of the three subscribed slices (menu, recipes, purchased) have changed. React Compiler memoises the result automatically.

      Returns { shopping: ComputedShoppingItem[] }

      Object containing shopping — a flat array of aggregated ComputedShoppingItem entries, one per unique ingredient name