Skip to content
Discussion options

You must be logged in to vote

The mount message is sent once, so on_mount is generally the best place to do any setup code that requires the DOM to be ready.

You could also put simple setup code in the constructor, if it doesn't need to do queries.

Replies: 1 comment

Comment options

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

This discussion was converted from issue #3959 on January 04, 2024 17:14.