Feb 23, 2024
What's the difference b/w ?
onUpdateState = { viewModel.updateState() },
and
onUpdateState = viewModel::updateState,
i don't understand? according to my knowledge its do the same thing.
What's the difference b/w ?
onUpdateState = { viewModel.updateState() },
and
onUpdateState = viewModel::updateState,
i don't understand? according to my knowledge its do the same thing.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app