Skip to content

Opt out of 'Workarounds for flaky browsers' in Dexie 4? #2217

@alexharrisdcj

Description

@alexharrisdcj

Hello! I was just curious if it was possible to opt out of this enhancement? Previously, Dexie would throw warnings occasionally such as, "Dexie: Need to reopen DB". Now, Dexie appears to try to resolve the erroneous behavior in the background.

I had a solution implemented that latched onto these warnings, and implemented side effects that would resync the local db with a remote in certain instance. Eg, if you have an active database and manually delete the database from indexeddb, previously dexie would throw that warning that I could use to signal I needed to resync. Now Dexie hides that, recreates the database, and continues to update new records. However now I can't force a resync to my backend db.

Is there a way to disable this behavior, or is there an event that can be listened to for what I'm trying to do?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions