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

Feat: add Vue 3 composition api usage #53

Closed neil585456525 closed 2 years ago

neil585456525 commented 2 years ago

Hi,thanks for this useful project. I found that there is only old option api usage in Vue example. Because Vue 3 has the powerful composition api just look like react hook, maybe it's a good idea to add composition features for Vue's users. If you agree with this proposal, I'd be glad to open a pr for it;)

YousefED commented 2 years ago

Hi @sam585456525 , welcome!

SyncedStore should work fine with the composition API, as it builds around Vue's reactivity feature.

Any PRs to clarify this in the documentation is definitely appreciated!