You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the latest version of knockout, v3.4 with knockout-validation v2.0.3, I get some crashes due to infinite recursion. I have narrowed it down to the following case, where a with: binding instantiates a new VM object containing an observable with a validation extender. The problem does not happen when the validation extender is removed.
EditableRepVM called
EditableRepVM called
EditableRepVM called
...
Uncaught Error: 'Too much recursion' after processing 5000 task groups.
@ processTasks @ knockout-debug.js:1081
When removing the validation extender, 'EditableRepVM called' is only logged once, as expected and the page does not crash.
When using the latest version of knockout, v3.4 with knockout-validation v2.0.3, I get some crashes due to infinite recursion. I have narrowed it down to the following case, where a with: binding instantiates a new VM object containing an observable with a validation extender. The problem does not happen when the validation extender is removed.
HTML:
JS:
With the above, console output is:
When removing the validation extender, 'EditableRepVM called' is only logged once, as expected and the page does not crash.
Here is a codepen demonstrating this case. Remove the commented code to experience the issue:
http://codepen.io/petemill/pen/GpaPOO?editors=101
The text was updated successfully, but these errors were encountered: