Skip to content

How to add sources dynamically in GitTree by pushing a button #243

Answered by jourdain
perquisite asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is that state.pipeline and pipeline1 share the same reference and the change does not get detected. You need to manually call state.dirty("pipeline")

Also there is no point to store the GitTree instance in state.gittree as it can not be used as a variable on the UI side.

You can find some related question below:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@perquisite
Comment options

Answer selected by jourdain
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