YousefED / SyncedStore

SyncedStore CRDT is an easy-to-use library for building live, collaborative applications that sync automatically.
https://syncedstore.org
MIT License
1.71k stars 51 forks source link

Text.insert is not a function #58

Closed Toubat closed 2 years ago

Toubat commented 2 years ago

I create a sandbox: https://codesandbox.io/s/sandpack-project-forked-4p6tep?file=/src/App.vue

On the screen, click on "Insert" button, an error will raise that says "this.store.myText.text.insert is not a function". I have no idea what I did wrong.

YousefED commented 2 years ago

I think you only get this error when manually editing the input text, which is also bound to the text:

<input v-model="store.myText.text" />

Currently, we don't support two-way binding to Text models on inputs directly. Removing this binding should fix it