glass-easel icon indicating copy to clipboard operation
glass-easel copied to clipboard

Remove `dataDeepCopy` and `propertyPassingDeepCopy` in favor of non-copy-setData

Open LastLeaf opened this issue 1 year ago • 2 comments

Currently these two component options are used to control whether the data should be copied while templating. It is component-level options, but it is more practical to control the deep copy strategies of each data field.

We want to remove them in faver of some advanced data update methods.

General API design:

  • add an extra argument for replaceDataOnPath and spliceArrayDataOnPath for the DeepCopyStrategy ;
  • add a new method updateAtomicData to set fields with DeepCopyStrategy.None .

LastLeaf avatar Jul 17 '23 14:07 LastLeaf