1

I know there is no callback mechanism i can hook into... but can I cancel or abort an applyBindings call?

This is important if for example I have asynchronous calls happening to collect component templates etc.

jaybeeuu
  • 1,013
  • 10
  • 25
  • I almost added another close vote ("Needs a repro"), but then I realized the literal question you ask is minimal but valid. - More than likely (as indicated by you mentioning you wanted to try and create a jsfiddle) you have an XY-problem. I suggest asking a seperate question about X with a repro. (If you end up editing *this* question so it is no longer Y, but X: please ping me in a comment, because that would invalidate my answer.) – Jeroen Jun 30 '16 at 10:42
  • I think you might be right - perhaps this edit is suitable? – jaybeeuu Jun 30 '16 at 11:04
  • I have posted a new question here: http://stackoverflow.com/questions/38121483/knockout-component-fails-if-element-removed-before-template-returned – jaybeeuu Jun 30 '16 at 11:14

1 Answers1

2

No.

There is no feature in KO to abort or cancel an in-progress applyBindings call.

Jeroen
  • 60,696
  • 40
  • 206
  • 339