Join Slack
Powered by
Hi Everyone, can anybody know how to refresh the c...
# compose
m
Muhammad Zaryab Rafique
04/03/2021, 5:05 AM
Hi Everyone, can anybody know how to refresh the compose function?
k
knthmn
04/03/2021, 6:04 AM
you could
currentRecomposeScope.invalidate()
, but what is your usecase?
👍 1
m
Muhammad Zaryab Rafique
04/03/2021, 6:07 AM
asking location permission from user, when user allow it then refresh the compose to see the result on the base of coordinates.
a
André Kindwall
04/03/2021, 6:14 AM
Just store isPermissionGranted as a state
👍🏼 2
👍 5
➕ 3
g
Gabriel
04/03/2021, 8:04 AM
And then when the state changes compose should, well, recompose 😎
👍 3
Open in Slack
Previous
Next