Preparing search index...

    Function loadFirstLaunchDataset

    • Loads the full first-launch dataset into the database.

      Copies bundled dataset images into the app's document directory, then inserts all ingredients, tags and pre-scaled recipes into the RecipeDatabase singleton. Each addMultiple* call notifies useSyncExternalStore subscribers so the UI updates incrementally as data arrives.

      Image copy failures are swallowed with a warning so the rest of the dataset still loads. All other errors propagate to the caller.

      Returns Promise<void>

      Promise that resolves when all data has been inserted