-
I have deployed a server and several clients, and I have several scripts that run when the frontend is started (By using the Sometimes, there is an issue where outdated note data is obtained when there is not complete synchronization, resulting in the content of new notes being overwritten. Is there any way for me to ensure that the scripts only run after complete synchronization of the notes? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Have you tried |
Beta Was this translation helpful? Give feedback.
-
I've added a new backend API call: api.runOutsideOfSync(() => api.log("This will definitely run outside of sync!")); It just exposes a mutex which is used internally for similar needs. The name sounds silly to me, new naming ideas are welcome! |
Beta Was this translation helpful? Give feedback.
I've added a new backend API call:
It just exposes a mutex which is used internally for similar needs.
The name sounds silly to me, new naming ideas are welcome!