Evan You
Evan You
Implementing undo with arbitrary mutation is hard -- it's possible with diffing, but not an ideal approach. You probably want to adopt some flux-like restrictions where any state mutation must...
@Mat-Moo for objects, no. It's possible to to provide splice information on Array mutations, but overall I'd recommend taking a different approach instead of going down the "watch then do...
It may sound cliche but honestly it really depends on your project and your preference. Mostly there are two types of components: view-specific, and view-agnostic (reusable/shared/whatever). I usually organize the...
Can you please add a test case for this in `componentProps.spec.ts`?
Vue was designed to work properly in such use cases. What you do need to be aware of is: 1. You are really sharing the same object across instances, so...
No, something like this: http://jsfiddle.net/xk3wekw7/
It can be directly from the store too, it depends on your component needs. I'm just demonstrating a possible approach here.
Yeah, it should work. Let me if it doesn't (and that would be a bug!)
`root._watchers.length` shows 0 for me.
居然不提到 Vue,差评(逃