Re: [w3c/IndexedDB] Add a `closed` property on the db (#333)

+1 to this. Might be better as a `.state` that can express more than just a boolean, also a `"statechange"` event would be useful.

Right now, if a library takes a database to use, it has no way of knowing when or if the database has been closed. The `"close"` event only fires if the database was forcibly closed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/333#issuecomment-625126748

Received on Thursday, 7 May 2020 09:03:01 UTC