Observing data source from inside BottomSheet overlay #2098
Answered
by
stagg
itsandreramon
asked this question in
Q&A
-
Hi everyone, I am using a bottomsheet overlay and would like to display loading/error/success state inside of it. What are the best practices to do so? I think when showing the bottomsheet, the model has to be ready already. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
stagg
May 21, 2025
Replies: 1 comment
-
Overlays are design to show a given state (from the caller), and not really to update that state (from the caller). You can put a sub-circuit inside the bottom sheet, and let that perform any longer operations. Would caution about it keeping the states fairly simple, can get some complicated bottom sheets 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
itsandreramon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overlays are design to show a given state (from the caller), and not really to update that state (from the caller).
You can put a sub-circuit inside the bottom sheet, and let that perform any longer operations. Would caution about it keeping the states fairly simple, can get some complicated bottom sheets 😅