I know it will eventually become the default, but until that happens, I think we need a transitional. I’m writing a lot of new code now and it’s hard to avoid two-way bindings since I can’t really opt-out of it.
A workaround that I started using is to define two properties, one for the public interface and one for internal use. The internal use is a one way binding to the external, while the external one is still using two-way binding. Internally I’ll never set the external one, which means I don’t have to worry about the two-way binding part. I’m just curious if you have better suggestions or your opinion about this hack/workaround.
From the consumer:
In my x-component