Hey guys. Should pure composable function produce ...
# compose
s
Hey guys. Should pure composable function produce the same result if it's called with the same arguments? I'm asking this because I'm experiencing an issue with positioning. See attached video. Here is my code https://gist.github.com/sergey-ben/3622dd192d8e537c41b303cdd757b1fd The result of clicking on "button 1" is different, after the "button 2" is clicked. Is it a bug of compose, or am I missing something?
s
Unless I didn't get the problem, you probably want to use
height
instead of
requiredHeight
j
@Sergey B At first glance, yeah, that looks like a bug. Please file an issue at https://issuetracker.google.com/issues?q=componentid:612128
s
Appreciate all you do. Compose is awesome
j
🎉🙏