New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model instances are not getting clear. #2518
Comments
Instead of |
hey @mbest thanks for your reply do we have any other alternative to solve this problem??? |
Looks like the So the most simple and clean fix would be to add explicit event listener removal straight into Knockout's This fixed the leak for me. (It's mandatory to use |
According to https://stackoverflow.com/a/26442188 we should not need to call |
Knockout needs to provide |
Scenario 1:
snapshot 2 : i am creating 100 instances on button click
snapshot 3: i am deleting those 100 objects on button click.
so after destroying object in heap snapshot there is not any instance present. works fine
Scenario 2
snapshot 2: i am creating 100 instances on button click
step 2: change few value in input field which is bind to the object
snapshot 3: i am deleting those 100 objects on button click.
so after destroying object in heap snapshot there is those few instance present.
i want to know how can i destroy those completely
code:
The text was updated successfully, but these errors were encountered: