Skip to content
Discussion options

You must be logged in to vote

Your widgets won't be mounted until the compose method has finished. So your tasks risk accessing the DOM before it is ready. A better place to launch tasks would be on_mount.

You might want to use workers which help simplify tasks with Textual apps.

Replies: 3 comments 3 replies

Comment options

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

@willmcgugan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by davep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants