prune

fun prune(retaining: Collection<Named<*>>)

To be called when the set of hidden views changes but the visible view remains the same. Any cached view state held for renderings that are not compatible those in retaining will be dropped.