Manually get knockout to re-evaluate a dependantObservable

后端 未结 2 986
野趣味
野趣味 2020-12-15 04:43

I am not sure if this is possible, but I have a scenario where I have a validation system which notifies my validation system when something has become valid/invalid via a d

2条回答
  •  春和景丽
    2020-12-15 04:49

    On your computed observable (isValid) you can call notifySubscribers(currentValue), which will notify any subscribers with the current value. It will not re-evaluate the computed and will simply notify subscribers with the current value.

提交回复
热议问题