ko.computed triggered twice

53 views
Skip to first unread message

James Dulaogon

unread,
May 10, 2017, 10:34:29 AM5/10/17
to KnockoutJS
In my index page, i have 2 components, a calendar and lists. My question is what is the reason why ko.computed in my list component triggered twice while my calendar component triggered once only.

noirabys

unread,
May 11, 2017, 3:12:35 AM5/11/17
to KnockoutJS

perhaps they have different dependencies ?

James Dulaogon

unread,
May 11, 2017, 6:05:21 AM5/11/17
to knock...@googlegroups.com
Yes. The two components are put into one container. Why is that the computed observable in list component triggered twice and the calendar component triggered once? hmm....

--
You received this message because you are subscribed to a topic in the Google Groups "KnockoutJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/knockoutjs/uW-3aumc4vY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to knockoutjs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

noirabys

unread,
May 12, 2017, 2:35:39 AM5/12/17
to KnockoutJS
please setup an fiddle or supply code ...
To unsubscribe from this group and all its topics, send an email to knockoutjs+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages