I have an issue with the TopBar in a Scaffold not ...
# compose
s
I have an issue with the TopBar in a Scaffold not updating when the parameter to the TopBar Lambda changes. When the lambda parameter for TopBar changes, shouldn't the whole lambda be reexecuted? To make it easier to analyse, I have reduced my code to a minimal reproducible example. When running this code on macOS or Windows, the id in the TopBar text does not update. I would be grateful if someone could take a look at it and let me know if it is a mistake on my end and how it should be implemented. https://github.com/findusl/initiative-tracker/blob/compose-bug-do-not-merge/kmpsharedmodule/src/commonMain/kotlin/de/lehrbaum/initiativetracker/ui/MainScreen.kt