-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'database is destroyed' error while using 'withIdPrefix' #149
Comments
Thanks @flootr! I didn’t yet figure out the problem but just wanted to let you know that I was able to reproduce it thanks to your repository, very much appreciated! This is on top of my Hoodie-things now, I’ll keep you posted. Mondays are usually rather busy, but hope to get to it on Tuesday or Wednesday latest |
I created a test case for the bug you found: I’m most certain that the problem is this: It will be tricky to fix, I have to give it some more thought That’s how far I got so far |
I tried to find a simple temporary workaround for this but it’s complicated ™️ becaues of who the implementation is split up between I’m tempted to deprecate But we might simply add an option to So far my thoughts, sorry this takes so long. I hope it’s not blocking you |
Not at all 👍 I'm very grateful for what you're doing. Right now it sounds like a bigger, more complicated change to me but if you think I can help at some point, ping me. |
hey @flootr I prepared an issue with lots of context, would you like to give it a go yourself? hoodiehq/camp#121 |
@gr2m I saw you already claimed that issue which is really cool and I'm really looking forward to your solution 👍 🎉 😎 |
yeah sorry! I had a flight and that was perfect to make it a productive one. I’m ~50% through already |
Yeah, of course 👍 |
@gr2m I wasn't able to reproduce the error by updating |
If I store a reference to a prefixed store I want to use throughout my application in its own file which I require from others, I get an database is destroyed-error after signing in or out.
I tried some things, but had no luck so far, for example using a new reference in every file with
const prefixedStore = hoodie.store.withIdPrefix()
get’s me apossible memory leak detected...
-warning after using the application for a while.Maybe I am misusing the method here, would appreciate some guidance then on how to improve :)
I created a test repo which should reflect both failure cases: flootr/hoodie-withidprefix-bug-test-case
The text was updated successfully, but these errors were encountered: