Stall on get
#2144
Replies: 2 comments
-
@dfahlander any thoughts? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Well a tab put into the background should not hold on to a transaction unless there would be some eternal synchronous loop going on. It should not be necessary to move the code to a service worker. That said, you might have hit a bug in iOS or so. Please let us know if you find your way through the issue and what you had to do. |
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
-
i have some code that looks like this:
My app can sometimes get into a state (iOS only) in which the only log statement that gets printed is "about to get page". the operation just seems to stall.
operations on a different table in the same database don't have an issue in this state. also, calling toArray on the entire pages table works fine.
I believe this is related to another tab in iOS which is suspended and blocking access to the pages table. Bringing that tab to the foreground resolves the issue.
Is there another explanation?
probably i should move all my Dexie code into a service worker? or is there another approach I should use?
Beta Was this translation helpful? Give feedback.
All reactions