Replies: 1 comment
-
Okay I found the source of my issues: https://dexie.org/docs/Collection/Collection.each() I created actions that led to sagas being executed in a Collection.each(). There is an implicit dexie Transaction that times out because obviously it gets suspended by all the sagas being executed. So the gist of it is this: be careful about dexies implicit transactions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I was just wondering if I was the only one facing this issue.
I want to read and write binary blobs ranging from a few hundred kilobytes to a few megabytes to indexed_db.
I am using dexie_db as a wrapper to make the indexeddb API less cumbersome.
I usually do something like
let blabla = yield call( ()=> db.name_of_the_objectstore.put({ primary_key: mykey, data: my_binary_blob}))
I sometimes see things like "TransactionInactiveError" on saving and "Failed to execute 'objectStore' on 'IDBTransaction…ction': The specified object store was not found." on accessing. (even though I can clearly see that the object is stored correctly and the objectstore exists. (in the developer tools))
my question is this: can this be related to generators and how redux-sagas works under the hood?
Beta Was this translation helpful? Give feedback.
All reactions