Re:Vue.js: The Documentary (Trailer) [video]
by plopz on Monday February 17, 2020 @12:00PM
(#22348969)
Do you mean writing your own get/set observables? I've looked at how Vuex does it and internally it just wraps the data in a Vue instance. https://github.com/vuejs/vuex/blob/dev/src/store.js#L280
Re:Vue.js: The Documentary (Trailer) [video]
by iovrthoughtthis on Tuesday February 18, 2020 @03:58AM
(#22354511)
I don’t understand how (or why) managing the reactivity of data and having multiple instances are coupled.
Also, implementing your own reactivity is very unintuitive. You need to implement your own “diffing” (is this change worth rendering) to know when to force Vue to render. This is definitely not how Vue was intended to be used.
Also worth noting its not 100% true you can't manage your data separately you just need to manage the reactivity yourself.