I am new to Knockout Js..I have this issue on my page that when one dependent observable is getting executed, an unrelated dependent observable also gets executed.
Is this a normal behavior or am I doing something wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Only related dependent observables should be executed.
Knockout.js will retrieve the initial value of the dependent observable and it will monitor what obervables were accessed. Then it will subscribe to those observables to detect future changes.
If a observable changes that is not related to your dependent observable then it shouldn’t be executed.
See: How dependency tracking works.
If you want further help then include an code example. Also make sure you are running the latest Knockout.js version with bug fixes, etc.