Skip to content

Compiling reactive SVG #456

Answered by postspectacular
dennemark asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dennemark — that's quite a lot of questions in one go 😉 - but I've just added some more notes which are hopefully helping...

New commit: 1d70c04

To copy from those docs:

Use $replace , $refresh or $switch to wrap any reactive values/subscriptions which produce actual HTML elements/components/subtrees (in hiccup format). See docs for these functions for details & examples. Not using any of these wrappers will result in unexpected outcomes.

Also see $wrapText, $wrapHtml or $wrapEl for DOM element related component wrappers.

The issue: If you're just placing a reactive value as child inside the component tree, like you did (i.e. not using any of these wrappers), then that value will on…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dennemark
Comment options

@dennemark
Comment options

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