HomeScreenData

data class HomeScreenData(val jetpacks: List<Jetpack> = emptyList())

Immutable data class representing the state of the home screen.

This class is wrapped in UiState by HomeViewModel to provide loading and error handling. Being immutable (via @Immutable annotation) enables Compose to skip recomposition when the data hasn't changed.

Parameters

jetpacks

List of Jetpack libraries to display on the home screen.

See also

ViewModel that manages this screen data

Wrapper providing loading and error state

Domain model for Jetpack library items

Constructors

Link copied to clipboard
constructor(jetpacks: List<Jetpack> = emptyList())

Properties

Link copied to clipboard