Thank you for reporting this bug. We will make it our priority to review this report.
ViewModel inheritence should work for everything not just data
ViewModel inheritence should work for everything not just data
Problem described here: http://ift.tt/1sZ8lVc
Mainly, in ViewModel we have couple of "kind" of binding:
- data
- formulas
- links
- stores
An application has global ViewModel, then more scoped ViewModel on top of the global ViewModel like one for each tab, then maybe even more scoped for one of the section of tab, then even more scoped in a component itself.Well, the scoping/chaining only works for data, we can just access super ViewModel that are in data, formulas, links, and stores doesn't work.
The design doesn't make sense, so it's why this is a "bug by bad design".
Extract from: http://ift.tt/1CxjwV9
Each ViewModel instance takes time to create and memory to manage. If a child view does not need data unique to itself, it can simply use the ViewModel it inherits from its container.
It's not possible right now to follow recommendation above!
ViewModel inheritence should work for everything not just data
Aucun commentaire:
Enregistrer un commentaire