Closed andywer closed 9 years ago
Why not naming it existing? Like in saga or domain? Can you update the readme too?
That's been my first thought. But in this case I don't assert that the view model has to be present nor that it must not yet exist. I don't know if it exists or not and that's fine for me.
It's more like saying: "I want the domain handler's default behaviour"
But there is also a good chance that I'm missing something ;)
Ok
Readme?
Yeah, true... I'll update the readme tomorrow!
Idea: rename to autocreate (default true)
Sure.
Updated code
Adds an option to
defineViewBuilder
that disables automatic creation of view models. So you may update a view model only if it has been created previously, for instance.Cheers