Skip to content

in compose() waiting for yield #4853

Answered by willmcgugan
leemthai asked this question in Q&A
Discussion options

You must be logged in to vote

It is best to implement reading data in your Mount event handler, rather than __init__. That way the DOM is guaranteed to be available.

i.e.

def on_mount(self):
    ...

Replies: 1 comment

Comment options

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