We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose 1.6.0
When iOS keyboard appears, the whole app recomposes. It most probably happens because in https://github.com/JetBrains/compose-multiplatform-core/blob/jb-main/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/uikit/KeyboardOverlapHeight.uikit.kt#L27 staticCompositionLocalOf is used. staticCompositionLocalOf recomposes the whole UI tree every time it changes. As changing the height of the keyboard is an often thing, it is not a good thing to recompose everything.
staticCompositionLocalOf
If keyboard is animated, the whole app recomposes every frame.
The solution is to replace staticCompositionLocalOf by compositionLocalOf.
compositionLocalOf
The text was updated successfully, but these errors were encountered:
Reported here #4434
Sorry, something went wrong.
No branches or pull requests
Compose 1.6.0
When iOS keyboard appears, the whole app recomposes. It most probably happens because in https://github.com/JetBrains/compose-multiplatform-core/blob/jb-main/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/uikit/KeyboardOverlapHeight.uikit.kt#L27
staticCompositionLocalOf
is used.staticCompositionLocalOf
recomposes the whole UI tree every time it changes. As changing the height of the keyboard is an often thing, it is not a good thing to recompose everything.If keyboard is animated, the whole app recomposes every frame.
The solution is to replace
staticCompositionLocalOf
bycompositionLocalOf
.The text was updated successfully, but these errors were encountered: