Skip to content

A restore node with dynamic default? #1194

Answered by L3MON4D3
bew asked this question in Q&A
Discussion options

You must be logged in to vote

Mhmmm, I think you'd need some custom logic there, or settle for something slightly simpler:

  • custom logic: the restoreNode will not overwrite the stored insertNode => whenever mod-name is updated, the dynamicNode is called correctly, but the restoreNode will re-use the insertNode that was generated previously => there is no dynamic component.
    You could circumvent this by resetting the stored text when the dynamicNode is called (we don't have api for this, but you can do snippet.stored["var-name"] = nil for now), but then the text you enter yourself would also be lost upon every dynamicNode update.
    In any case, to get this to work exactly like you want, you'd have to track whether the tex…

Replies: 2 comments 6 replies

Comment options

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

Comment options

You must be logged in to vote
5 replies
@bew
Comment options

@L3MON4D3
Comment options

@bew
Comment options

@L3MON4D3
Comment options

@bew
Comment options

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