Open NearSingularity opened 7 years ago
Hastily closed this when I thought watch
to be the sole answer.
[Edited]:
watch
is a solution to this issue...but still wondering why beforeUpdate
doesn't get triggered in my original scenario...is this intended? Do I have a misconception on the purpose of beforeUpdate || updated
and the child property binding flow?
Trying to be as SSCCE as possible.
Issue:
I have a parent component that starts a small countdown in a
setInterval
and when that countdown hits0
I set a parent propertystartTimer
totrue
.Pertinent Details
That parent property is bound to a child component like so
:start='startTimer'
.Current Outcome
The parent property--
startTimer
does indeed change fromfalse
->true
butstart
is never updated on the child component.[Edited]: Instead of a big block of code...here is a fiddle: https://jsfiddle.net/x5funm8k/10/