|
|
@ -31,6 +31,8 @@ class Interests2PaneViewModel @Inject constructor(
|
|
|
|
private val savedStateHandle: SavedStateHandle,
|
|
|
|
private val savedStateHandle: SavedStateHandle,
|
|
|
|
) : ViewModel() {
|
|
|
|
) : ViewModel() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val route = savedStateHandle.toRoute<InterestsRoute>()
|
|
|
|
val route = savedStateHandle.toRoute<InterestsRoute>()
|
|
|
|
val selectedTopicId: StateFlow<String?> = savedStateHandle.getStateFlow(
|
|
|
|
val selectedTopicId: StateFlow<String?> = savedStateHandle.getStateFlow(
|
|
|
|
key = TOPIC_ID_KEY,
|
|
|
|
key = TOPIC_ID_KEY,
|
|
|
|