Replies: 1 comment 1 reply
-
@PhilGarb you can probably build this using a custom database extension and our stateless message functionality. So basically after saving a document you call document.broadcastStateless, which will then send a message to the frontend and thus it knows that the data has been saved. I just noticed that this wasn't showing on our docs because of a merging issue, I just fixed that. Here's the link: https://tiptap.dev/hocuspocus/server/hooks#on-stateless |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I am wondering whether there is a way to know on the client when a document has been stored in the database. I have actions that use what is stored in the database by the Database extension. Currently when a change is made and one of these actions is executed it receives an outdated state of the document, because the document is stored after ca. 3-5 seconds of client inactivity.
I generally really like the delay, but in these cases it leads to issues. My initial thought is that it would be perfect if the client could trigger storing the document in the database and only then performing the actual action.
Beta Was this translation helpful? Give feedback.
All reactions