orbitinghail / sqlsync

SQLSync is a collaborative offline-first wrapper around SQLite. It is designed to synchronize web application state between users, devices, and the edge.
https://sqlsync.dev
Apache License 2.0
2.19k stars 28 forks source link

Refactor sqlsync react #38

Closed carlsverre closed 6 months ago

carlsverre commented 6 months ago

This PR refactors sqlsync-react and sqlsync-worker in order to move most of the generic code out of sqlsync-react and into sqlsync-worker. The goal of this PR is to make it easier to build more framework specific libraries such as support for SolidJS (see #37).

carlsverre commented 6 months ago

@matthewgapp can you take a look at this PR and let me know if it looks ok to you? Ideally it dramatically simplifies the SolidJS PR.

I haven't finished integrating this with demo/frontend yet so it's still marked as a draft. Will finish that up tomorrow along with any comments you have.

carlsverre commented 6 months ago

Ok fixing the frontend wasn't very difficult. Will finish this up tomorrow.

matthewgapp commented 6 months ago

@matthewgapp can you take a look at this PR and let me know if it looks ok to you? Ideally it dramatically simplifies the SolidJS PR.

I haven't finished integrating this with demo/frontend yet so it's still marked as a draft. Will finish that up tomorrow along with any comments you have.

Looks gr8! I rebased my PR onto this branch and tested it. Seems to be working!