Preparing search index...
    RecipeDatabaseProvider: React.FC<{ children: ReactNode }> = ...

    RecipeDatabaseProvider - Context provider for reactive database access

    Wraps the application (or part of it) to provide reactive database state and operations to all child components. Should be placed near the root of the component tree, after DarkModeProvider but before NavigationContainer.

    Responsibilities:

    • Initializes reactive state from RecipeDatabase singleton
    • Wraps all database methods with state refresh logic
    • Provides context value to all child components via useRecipeDatabase hook

    Child components that will have access to the database context

    // In App.tsx
    <RecipeDatabaseProvider>
    <DefaultPersonsProvider>
    <SeasonFilterProvider>
    <DarkModeContext.Provider value={{...}}>
    <NavigationContainer>
    <AppWrapper />
    </NavigationContainer>
    </DarkModeContext.Provider>
    </SeasonFilterProvider>
    </DefaultPersonsProvider>
    </RecipeDatabaseProvider>