Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen Overridable Content function call multipleTimes when pass data from one Screen to another in Android project. #471

Open
MustafizInverse opened this issue Aug 14, 2024 · 0 comments

Comments

@MustafizInverse
Copy link

i am using the below data model and screen.

// commonMain serializable:
expect interface CommonSerializable

// androidMain Serializable:
actual typealias CommonSerializable = Serializable

// data model:
data class Info(val age:Int = 22):CommonSerializable

// Screen:
data class MediaPicker(val info:Info) : Screen {
override val key: ScreenKey = uniqueScreenKey
var count = 1
@composable
override fun Content() {
count++
println("ENTER THE SCREEN MediaPickerScreen ${info.age}")
}
}

The content function is called multiple times. Could someone please help me fix this?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant