Current recipes state - reactive, triggers re-renders when changed
Adds recipe to database and refreshes recipes state
Edits recipe in database and refreshes recipes state
Deletes recipe from database and refreshes recipes state
Current ingredients state - reactive, triggers re-renders when changed
Adds ingredient to database and refreshes ingredients state (not recipes)
Edits ingredient in database and refreshes both ingredients AND recipes state
Deletes ingredient from database and refreshes both ingredients AND recipes state
Current tags state - reactive, triggers re-renders when changed
Adds tag to database and refreshes tags state (not recipes)
Edits tag in database and refreshes both tags AND recipes state
Deletes tag from database and refreshes both tags AND recipes state
Computed shopping list from menu - reactive, triggers re-renders when changed
Toggles purchase status of ingredient by name
Clears all purchased ingredient states (called when menu is cleared)
Current menu state - reactive, triggers re-renders when changed
Adds recipe to menu (shopping list auto-computed)
Toggles cooked status of menu item (shopping list auto-computed)
Removes item from menu (shopping list auto-computed)
Clears entire menu and purchased states
Checks if recipe is in menu
Finds recipes similar to the given recipe using fuzzy matching
Finds ingredients similar to the given name using fuzzy matching
Finds tags similar to the given name using fuzzy matching
Returns random ingredients of specified type
Returns random tags
Returns random tags (legacy method)
Scales all recipes to new default persons count and refreshes recipes state
Checks if database is empty (for first launch detection)
Adds multiple ingredients to database and refreshes ingredients state
Adds multiple tags to database and refreshes tags state
Adds multiple recipes to database and refreshes recipes state
Indicates whether database data is loaded and ready to use
Current progress of recipe scaling operation (0-100), undefined if not scaling
Dataset loading error - app is usable but initial recipes won't be loaded
Dismisses the dataset load error notification
Gets URLs that have been imported from a specific provider
Gets URLs that have been seen (but not imported) from a specific provider
Marks URLs as seen for a specific provider
Removes URLs from seen history for a specific provider
Type definition for the RecipeDatabase context value
Provides access to reactive database state and all database operations. All mutation methods automatically trigger appropriate state refreshes.