You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without worker-pouch the change is received in both windows.
With worker-pouch the change is received in only the window where the db.post() call happens.
The text was updated successfully, but these errors were encountered:
Yep, this bug occurs because there's no way to communicate across the worker boundary. Luckily there are efforts to get change observers into IndexedDB, which would solve this problem.
Unfortunately it may be some time before this gets into browsers, meaning until then you'll have to manually do postMessage() and/or use SharedWorkers in order to get change events firing consistently in all tabs/workers.
Example:
https://jsbin.com/gefurupogi/1/edit?html,js,console,output
Without worker-pouch the change is received in both windows.
With worker-pouch the change is received in only the window where the db.post() call happens.
The text was updated successfully, but these errors were encountered: