codex-team / codex-team/editor.js
Is it possible for the onChange function to ingore the update function . Such that the onChange function is only activated by user changes?
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Is it possible for the onChange function to ingore the update function . Such that the onChange function is only activated by user changes?
I am trying to implement realtime collaboration with the firebase realtime database. Where I listen for changes by other users and then update the blocks accourding to the changes. The current problem is an infinite loop is created when I try to update any data since a user would make a change where the onChange function is invoked saving the data to firebase and then firebase see the changes and tries to updated the blocks on another user's side. Where this happens the onChange function is invoked again and so the infinite loop continues.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.