As title.
P.S. What's the diff between setting a data directly (like wrapper.vm.$data.foo = 'foo') versus using wrapper.setData (like wrapper.setData({foo: 'foo'}) ? Is it just is a shortcut?
If it doesn't, I suggest we can provide a new function that accept a object path selector instead of a simple data name, for instance:
// setting wrapper.vm.$data.time.date to 'now'
wrapper.setData({ 'time.date': 'now' })
@eddyerburgh If it isn't on the pipeline or anyone else isn't working on this, I'm interested in taking a look at this. This is a feature I wanted too 👍 Let me know.
Hey! 👋
setData() calls vm.$set() for each piece of state and it only modifies the desired key, not the whole object.
Most helpful comment
@eddyerburgh If it isn't on the pipeline or anyone else isn't working on this, I'm interested in taking a look at this. This is a feature I wanted too 👍 Let me know.