manueldidonna
08/13/2020, 8:00 PMstable
, the invocation is skipped if the parameters of the function are immutable
@Stable
private fun getStorage(collection: StorageCollection, storageIndex: Int): Storage {
return collection.getMutableStorage(storageIndex)
}
@Composable
private fun getStorage(collection: StorageCollection, storageIndex: Int): Storage {
return remember(storageIndex) { collection.getMutableStorage(storageIndex) }
}