Skip to content

Bug: data loss on app initialization* #19

@codedstrings

Description

@codedstrings

Description:
The app loses existing data when loaded due to a race condition between API data loading and automatic "Default" project creation.

Root Cause:

  • TodoApp constructor immediately creates a "Default" project which triggers updateDataToAPI()
  • loadHomepage() simultaneously calls loadFromAPI() to fetch existing data
  • The update call overwrites server data before/after the load completes

Expected Behavior:
App should load existing data from API without data loss

Actual Behavior:
Existing projects and todos are cleared and replaced with empty "Default" project

Impact:
Users lose their saved data every time the app is refreshed/reloaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions