Closed mitar closed 8 years ago
At the end implemented using data-lookup package. It limits the reactivity just to that field. You can specify the path with string with dots (foo.bar
) or as an array (['foo', 'bar']
).
currentData
also checks the lexical scope: #76
While using computed field to limit reactivity is cool it still becomes a bit tedious. So we extend
data
andcurrentData
to return only requested field and limit reactivity to it. So something like:Would return the same as
@data().foo.bar
only that it would rerun only when the value changes. Iffoo
orbar
are functions, it would call them.