We already do this for observer, but computed properties have not changed because it would be a major breaking change. We should take this on separately since it will cause a lot of rework. Any computed method that relies on returning a default value when dependencies are undefined will need to be rewritten to account for the change.
Possible changes users could leverage:
define a value in the properties block. This will at least initialize the computed property correctly, but doesn't account for future cases where dependencies are undefined
set a value on a dependency to force the computation to happen at initialization. if this is practical, it may be the simplest refactor
We already do this for
observer
, butcomputed
properties have not changed because it would be a major breaking change. We should take this on separately since it will cause a lot of rework. Anycomputed
method that relies on returning a default value when dependencies areundefined
will need to be rewritten to account for the change.Possible changes users could leverage:
value
in the properties block. This will at least initialize the computed property correctly, but doesn't account for future cases where dependencies are undefinedvalue
on a dependency to force the computation to happen at initialization. if this is practical, it may be the simplest refactor