If collection and storageIndex don't change, are t...
# compose
m
If collection and storageIndex don't change, are these functions equivalent? From what I understand about
stable
, the invocation is skipped if the parameters of the function are immutable
Copy code
@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) }
}