-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
Asynchronous operations in Table.hook('reading') #14
Comments
It's not possible in current version. I've thought about the scenario and I would love to implement that in a future version but I can't guarantee David
|
Great- that's what I figured. I'll look forward to it in a future version. For now, I'll just make my own add-on that will do what I need to do. |
F.Y.I I am currently working on a new version of Dexie that will support asyncronic hooks as well as a map() method on Collection that will accept asyncronic mapping by returning a Promise. |
Had to stash the changes for this change but it's still something that I would like to se fixed. Seems this will not make it into Dexie 1.x for backward compatibility reasons. |
Is there any way to perform asynchronous operations when hooking into a table read? I have certain objectStores that contain objects with fields that are just IDs referring to objects in other objectStores. I was hoping I could use the reading hook to automatically dereference those fields, which would require further database reads. As far as I can tell, the function in the reading hook must only contain synchronous operations.
I can do the dereferencing somewhere other than a read hook, of course, but there seemed like a nice place for it.
The text was updated successfully, but these errors were encountered: