Skip to content

Reacting to unobserved property (that has an obserevable) #3270

Answered by urugator
nsainaney asked this question in Q&A
Discussion options

You must be logged in to vote

When CommandListStore.entityStores[0].statusStore.entity is modified, the CommandsListStore is invalidated which makes no sense to me as CommandStore get statusStore() has no annotations.

Is CommandListStore.entityStores[0].statusStore.entity accessed during entityStores? If it is, the result of entityStores depends on it and therefore will recompute on change. If there is no annotation on statusStore it behaves as normal getter, it won't prevent tracking accessed observables...

How do I explicitly have ComandStore/CommandListStore ignore modifications to StatusStore?

You can disable subscriptions with untracked, but it's unlikely you actually want to do that.

There should be no diffe…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nsainaney
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants