-
I am using the indexDB storage and an error popped up using with the following CODE def update_manager_data(self,_type,data):
self.timestamps[_type] = datetime.now().isoformat()
local_storage['timestamps'] = self.timestamps
self.boss_store[_type] = data # This is my store. ERROR
When updating a store, is it done in a transaction? |
Beta Was this translation helpful? Give feedback.
Answered by
lewysigns
Jan 11, 2023
Replies: 1 comment
-
Reading up on implementing indexedDB a bit. It looks like it does support Transactions. Since this error occurred, I assume the following code: def __setitem__(self, key, val):
self._store.setItem(key, _serialize(val)) Is calling the transaction method when storing items. I'll look at catching it in a try/except. Here is where I read about indexedDB if anyone is interested at a later date: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lewysigns
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reading up on implementing indexedDB a bit. It looks like it does support Transactions. Since this error occurred, I assume the following code:
Is calling the transaction method when storing items. I'll look at catching it in a try/except.
Here is where I read about indexedDB if anyone is interested at a later date:
mozilla
web.dev