Access updated state when handling events #471
-
Problem when i want to read state in the event handling.
if I change the key for the launched effect to be updated when the key updates like this:
i do miss other events that are triggered once a new item is added. Has anyone else dealt with that situation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I believe this is what |
Beta Was this translation helpful? Give feedback.
-
oh, thanks - wasn't aware of that - works fine! 👌 🙏 |
Beta Was this translation helpful? Give feedback.
I believe this is what
rememberUpdatedState
is meant to solve: https://developer.android.com/develop/ui/compose/side-effects#rememberupdatedstate