Asad Mukhtar
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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Asad Mukhtar
Asad Mukhtar

Written by Asad Mukhtar

Sr. Software Engineer - Android

Responses (1)

Write a response