Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bug? Model-to-target converter is called multiple times. #9405
Take a look at this playground example: http://tinyurl.com/y9w9knuk
I've bound a store model to a form controller model with a converter function. The converter function is called multiple times (see the console log). The first times it is called with null, the last time it is called with the correct value. I don't know if its a bug or if its the intended behavior or my mistake, but I think the converter function should be called only once.
@chrisch-hh that's because you've an undefined model initially. Change
in order to have an initialized model. Your converter will be only called once in this case. The reason is that the property chaining tries to resolve a "null" source and then runs into a fallback.