Skip to content

Some confusion about readOnly mode #302

Closed Answered by georeith
Alecyrus asked this question in Q&A
Discussion options

You must be logged in to vote

@Alecyrus my understanding is no the changes will not be discarded just not accepted by the server, the user will just have changes the server doesn't that it loads from indexeddb.

AFAIK HocusPocus does not do any replace operations whatsoever on the client. It only ever adds updates.

You would need to implement something that manually deletes the indexeddb copy and replaces it with the server copy if authentication fails.

I do something similar to expire documents on the server over time (remove their history as they grow large) and invalidate the clients copy after.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Alecyrus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants