Skip to content

Run script even if component is not mounted #14648

Closed Answered by dummdidumm
cloudymeatball asked this question in Q&A
Discussion options

You must be logged in to vote

We're not going to add logic to run a component's script without actually mounting it. I'm converting this to a discussion since there are potentially a few workaround available.

Another potential one would be to not use #if but instead render the whole form and hide the ones you don't want with display:none

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cloudymeatball
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
4 participants
Converted from issue

This discussion was converted from issue #14621 on December 10, 2024 09:45.