Skip to content

[BUG] Bookmark data persistence issues on page refresh #334

Description

@sahitya0xsingh

Description

The bookmark functionality, which utilizes localStorage for data persistence, exhibits issues with data synchronization and retention upon page refresh or browser restart. In some cases, bookmarks may disappear or fail to load correctly, indicating a problem with how data is saved, retrieved, or handled during localStorage operations. There appears to be a lack of robust error handling for localStorage failures.

Steps to Reproduce

  1. Bookmark several chapters or pages.
  2. Refresh the page or close and reopen the browser.
  3. Navigate to the bookmarks section.
  4. Observe if all previously saved bookmarks are present and correctly loaded. (This issue might be intermittent or specific to certain scenarios).

Expected Behavior

Bookmarks should persist reliably across page refreshes and browser sessions. All saved bookmarks should be consistently available and correctly displayed when accessed. Robust error handling should be in place for localStorage operations.

Environment

  • Browser: All
  • Device: All
  • OS: All

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions