Dexie Logo

Dexie.on.close

Syntax

db.on("close", () => console.log("db was closed"));

Description

The "close" event occurs if database is forcibly closed from external action. From dexie@4.1.0, this event is also fired as a CustomEvent when db.close() is called explicitely or implicitely and not just when forcibly closed from outside.

© 2014-2025 Awarica AB

Made with love for great people.

Read Terms & Conditions and Privacy Policy.

We recently launched a new website! Missing something? Visit the old site. Your feedback is welcome!