Skip to content

van.derive on dynamic child of vanX.reactive #362

Answered by Tao-VanJS
Rhaoma asked this question in Q&A
Discussion options

You must be logged in to vote

Your guess is right. If serverFlag is false, the then branch of the if statement won't be executed thus this.data[variable].value won't be accessed and registered as a dependency of the derivation. Whenever you turn serverFlag to true, this.data[variable].value will be accessed and registered as the dependency of the derivation.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@Tao-VanJS
Comment options

@Rhaoma
Comment options

@Tao-VanJS
Comment options

Answer selected by Rhaoma
@Tao-VanJS
Comment options

@Rhaoma
Comment options

@Tao-VanJS
Comment options

@Rhaoma
Comment options

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