doc improvement
This commit is contained in:
parent
ea66b75b86
commit
571bedd76d
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ without waiting for any *micro*tasks. See comments about Safari at https://githu
|
||||||
Another failure mode perceived in Hydrogen on Safari is that when the (readonly) prepareTxn in sync wasn't awaited to be completed before opening and using the syncTxn.
|
Another failure mode perceived in Hydrogen on Safari is that when the (readonly) prepareTxn in sync wasn't awaited to be completed before opening and using the syncTxn.
|
||||||
I haven't found any documentation online about this at all. Awaiting prepareTxn.complete() fixed the issue below. It's strange though the put does not fail.
|
I haven't found any documentation online about this at all. Awaiting prepareTxn.complete() fixed the issue below. It's strange though the put does not fail.
|
||||||
|
|
||||||
|
## Diagnose of problem
|
||||||
|
|
||||||
What is happening below is:
|
What is happening below is:
|
||||||
- in the sync loop:
|
- in the sync loop:
|
||||||
- we first open a readonly txn on inboundGroupSessions, which we don't use in the example below
|
- we first open a readonly txn on inboundGroupSessions, which we don't use in the example below
|
||||||
|
|
Reference in a new issue