Closed arv closed 2 years ago
I'm having difficulty reproducing.
I created a local version of Replidraw that has basically the same useEffect setup for creating/closing Replicache as in this gist from the report over Discord. This did not manifest the problem.
I couldn't reproduce this either by applying Greg's patch to Replidraw. I did verify that the close call is running.
It is common to close and reopen a db quickly (in react hot module reloading for example) but that leads to issues with the db being in the process of being closed.
Before SDD we had a way to detect this by awaiting the closing promise when we open the db again. I think the
_perdag
db is not doing this as we expect any more leading to this error.See https://discord.com/channels/830183651022471199/942807273300955187