Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dfahlander
Copy link
Collaborator

No description provided.

dfahlander and others added 30 commits June 10, 2024 19:39
Still need to think it through. Might need to find a better way than iterating all updates in entire DB periodically.
Could not take latest as it generates double types. Found out we needed version 9.3.1 exactly.
* Renamed updTable to updatesTable
* Renamed id / rowId to parentId
* To lookup whether a certain document is open and find it
* updates
* awareness
* sync
* websocket
Move all yjs related modules to an yjs directory
* updatesTable is not meaningful outside of client
* server need to know the parent table to verify access
* parent table + yDoc prop combined forms the same uniqueness as updatesTable.
* run triggers instantly when for docs that are not open
* enque triggers while docs are open, so they run when they eventually close

This is a good enough solution for now for dexie starter and the Hackathon even though it's a bit too opinionated and should definitely be revised. The whole triggering API should be revised and there is a better idea to be implented later.
Tested with dexie-cloud-starter and seems stable enough for release.
@dfahlander dfahlander merged commit 552500a into master Apr 2, 2025
5 checks passed
@dfahlander dfahlander deleted the support-yjs-dexie-cloud branch April 2, 2025 20:45
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.

2 participants