compose-color-picker icon indicating copy to clipboard operation
compose-color-picker copied to clipboard

Use rememberUpdatedState to prevent stale lambda capture

Open halilozercan opened this issue 3 years ago • 0 comments

If a composable passes a lambda argument down to other composables via wrapping, lambda gets captured which may not read the latest state when executed. rememberUpdatedState fixes this problem.

halilozercan avatar Aug 23 '22 17:08 halilozercan