Could someone please advise as to why during recomposition the scaffold state seems to be working as intended by the isTopBarEditing state is always reset to false. This is SearchTab is part of a bottom navigation bar and anytime I navigate away and come back to it, the scaffold state seem to hold the position of the SearchResults composable without a problem but isTopBarEditing is always reset to false (added snippet in thread)
@Albert Chang Thank you for the suggestion. I didn't realize there was such a thing. I thought remember would be able to handle saving and restoring the value but I guess that only works for the lifecycle of the composable and not across multiple draws of the composoable