Preparing search index...

    Module useRecipes

    useRecipes - Focused hook for recipe data and CRUD operations

    Subscribes directly to the recipes slice of the RecipeDatabase singleton via useSyncExternalStore. Re-renders only when recipe data changes — unaffected by ingredient, tag or menu mutations.

    Image cleanup on edit (delete old file when image changes) and progressive scaling logic live here as UI-layer concerns rather than in the database singleton. Image deletion on recipe removal is handled by RecipeDatabase.

    useRecipes