I am using knockoutjs 2.0 & the knockout-deferred-updates plugin. I am encountering sporadic null object reference errors in my bindings, due, presumably, to the timing of evaluating the various callbacks. I am looking for some guidance on how to determine whether (or which) items to set deferredUpdates = false
.
As an alternative, I have put in test code in the binding to check if the value obtained from the valueAccessor()
call is null; if so, I do not evaluate the binding function. While this might work for update
handlers, it doesn't seem like a good idea for init
ones.
Thoughts?
Thanks in advance,
Gene