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
In the meantime, Orion has a workaround which just recreates the worker after a couple hundred MS but... it's ugly, and it makes using a SharedWorker very inconvenient. There are a few ways we could reduce the grossness of this without waiting for an upstream fix in Chrome but I think it might boil down to including an async import.
We don't 100% have to fix this before 1.0 but it's just so awful I'd like to fit it in if we have time.
The text was updated successfully, but these errors were encountered:
pvh
changed the title
Automerge-Repo in a SharedWorker under Vite has PROBLEMS.
Automerge-Repo in a SharedWorker under Vite loses "connect".
Aug 9, 2023
I've fixed this with dynamic imports as a workaround; it's inelegant and vaguely embarrassing to include in example code but it's less bad than the old "just keep remaking the worker" approach.
See also: Menci/vite-plugin-wasm#37
In the meantime, Orion has a workaround which just recreates the worker after a couple hundred MS but... it's ugly, and it makes using a SharedWorker very inconvenient. There are a few ways we could reduce the grossness of this without waiting for an upstream fix in Chrome but I think it might boil down to including an async import.
We don't 100% have to fix this before 1.0 but it's just so awful I'd like to fit it in if we have time.
The text was updated successfully, but these errors were encountered: