Skip to content

Conversation

@DominicGBauer
Copy link
Contributor

@DominicGBauer DominicGBauer commented May 28, 2024

Description

There was an issue introduced by #178 where multiple tabs were not syncing correctly. This PR fixes this issue by setting useWebWorker to true by default for the syncImplementation web worker.

The shared sync implementation (which resides inside a web worker) creates a WASQLite connection from a worker message port which is supplied to it. We need to specify useWebWorker when creating the WASQLite connection adapter to correctly use the supplied message port. This port should always be available to the shared sync implementation so that syncing can occur.

Video

Screen.Recording.2024-05-28.at.16.36.00.mov

@DominicGBauer DominicGBauer merged commit c3f29a1 into main May 28, 2024
@DominicGBauer DominicGBauer deleted the fix/multi-tabs-issue branch May 28, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants