https://kotlinlang.org logo
#compose
Title
# compose
c

Chachako

05/02/2022, 10:39 AM
Is there any API to manually ask a component to recompose? It’s
drawWithContent
Or do I need to use a state in
drawWithContent
that doesn’t make any sense to get this block to recompose?
f

Filip Wiesner

05/02/2022, 10:42 AM
What is your use case?
drawWithContent
should reflect some state and it will recompose when state changes.
🙌 1
c

Chachako

05/02/2022, 10:45 AM
Um... Yeah it’s a bit specific, the use case is to recompose the content after the screen content changes to achieve something like a real-time blur
Oh... I think I’ve gotten into a bit of a thinking rut, and this one might be a bit silly, I’m going to spend some time rethinking a better solution 😅
👌 1
f

Filip Wiesner

05/02/2022, 10:51 AM
use case is to recompose the content after the screen content changes to achieve something like a real-time blur
I don't think I can imagine that 😄
9 Views