Comments (9)
@tommoor thanks for the heads up, will give it a go.
Ive seen some interesting things coming to the provider like random reconnect intervals that I am keen on. 🤞
from hocuspocus.
@ValentaTomas @tommoor this is still an issue. I made a video of the difference between the two providers in my application. I know it isn't enough to debug the issue just wanted to show that there is a difference still at least:
still.persists.mp4
If I had to guess I think its to do with setting nested Y.Map/Y.Array as my data structure looks something like:
Y.Map {
items: Y.Map {
'123': Y.Map {
itemProps: Y.Map {
matrix: Y.Array []
}
}
}
}
Replacing this matrix
above with a new Y.Array
is what is happening in the video and with the @hocuspocus/provider
the matrix is deleted, with y-websocket
the update happens correctly.
This only appears to happen when I load the documents out of indexeddb
first (why I had to leave the document and re-enter for the video above).
from hocuspocus.
Thank you for the video, this is very helpful. We've been discussing some extra tooling to make debugging this type of situation a little easier, but to me this is one of the most critical bugs on the list right now – it might be indicative of deeper sync problems.
from hocuspocus.
You might want to give this another try, up until hocuspocus/[email protected]
the server was initiating the sync protocol rather than the client – this could have had some odd effects.
from hocuspocus.
I just tried it yesterday and I think the problem is still there. Any success @georeith ?
from hocuspocus.
Thanks for the bug report!
Just for reference, I’ll follow-up here with more ideas to improve the debugging: #187
I’ve just compared the relevant code for handling document updates in y-websocket and the @hocuspocus/provider and couldn’t see any issue.
Will dig deeper. ⛏️
from hocuspocus.
I think we fixed it. Would you mind to test again with @hocuspocus/[email protected]
@georeith?
from hocuspocus.
@hanspagel I haven't had a chance to test with the latest @hocuspocus/server
but I've just tried @hocuspocus/[email protected]
and it appears the issue is now fixed 😀
from hocuspocus.
Going to close this as resolved, please reopen if need be.
from hocuspocus.
Related Issues (20)
- Hocuspocus >=2.7.0 does not work with React in strict mode / Lexical HOT 5
- Support logging request/socket information in custom Logger.log function HOT 1
- Unsure how to fallback gracefully from initial provider connection issues HOT 2
- Migrate from slate js to prosemirror HOT 1
- Unnecessary onStoreDocumentHooks call on last connection close (potential data loss) HOT 1
- Provider downloads document content twice when syncing initially HOT 1
- Hang caused by not cleaning up Awareness in provider HOT 1
- Do collaboration history and auto-versioning work? HOT 1
- Add custome field to the Webhook
- Provider.disconnect prevents subsequent provider.connect from working HOT 1
- 2.10.0 breaks provider in nodejs HOT 7
- The server document judgment is always empty, resulting in duplicate data. HOT 2
- backend onChange undefined HOT 2
- Server crashed when webhook receives 400 status code response HOT 3
- Inaccurate document type check in onLoadDocument
- use lexical TypeError: The encoded data was not valid for encoding utf-8 HOT 1
- Updates made using openDirectConnection are not synchronizing changes across different Redis instances. HOT 9
- provider.destroy will reopen connection HOT 2
- About the actual storage size of documents during collaborative editing HOT 8
- An authentication token is required, but you didn’t send one - but token was actually included HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hocuspocus.