in compose() waiting for yield #4853
-
This probably makes no sense because I don't understand async programming at all but here goes anyway. Here is the code:
Is there a way to wait for CoinTable() and CoinInput() widgets to yield before running any more code in Compose? I want to yield further widgets but they really need CoinTable() to be available (in the DOM?) as they read values from CoinTable() when initialzing... Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Aug 9, 2024
Replies: 1 comment
-
It is best to implement reading data in your i.e.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
leemthai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.