When a new note is created, there is a delay in the note's title being propogated to redux state (because it takes ~15 seconds max for yjs to update it in the backend)
Until ^ is done, there is a delay in search of new notes
We can't perform delete kinda operations on new notes because that note technically doesn't exist yet in db
few things to fix would be:
[x] Have a distinction on new note vs note from db
[x] For new notes until they are available in db, don't provide publish/moving/trash options.
[x] For new notes, propagate and save title in redux state early (even if user closes session, yjs will save the note along with title in backend. so we are good).
few things to fix would be: [x] Have a distinction on new note vs note from db [x] For new notes until they are available in db, don't provide publish/moving/trash options. [x] For new notes, propagate and save title in redux state early (even if user closes session, yjs will save the note along with title in backend. so we are good).