I’m using HOT with Vue, but it seems to behave differently in terms of data referencing than than the standard component.
In a normal HOT component, the docs state explicitly that the data is referenced, but with the Vue table, it appears to be a kind of 1-way update:
- updating the original datasource updates the table
- updating the table does not update the datasource
Here is a demo:
In the Vuex tutorial, it appears that getSourceData()
is used to commit a complete set of data to the store, so I presume this is the right way to record updates with Vue?
A few questions:
- is this change of behaviour documented? If not, why not?
- is using getSourceData() the right way to make 2-way updates? Again, why not documented?
- if the data is not stored by-reference, how should we handle 2-way updates? I presume, use a watch?
- if using a local datasource, not vuex, if we update that, will it affect the table?
My comment here would be that data reactivity is one of the key selling points of Vue, and it would be really useful to address right at the start of the tutorials, even before passing attributes, etc.
I’ll be back with more questions I’m sure