Skip to content

Instantly share code, notes, and snippets.

@MaxMichel2
Created June 12, 2024 14:50
Show Gist options
  • Save MaxMichel2/7f421473c46407b3fcd08cef80fdbaaf to your computer and use it in GitHub Desktop.
Save MaxMichel2/7f421473c46407b3fcd08cef80fdbaaf to your computer and use it in GitHub Desktop.
The actual implementation of the ViewEffect for the ForYouScreen (from the Now In Android application)
@Immutable
sealed class ForYouEffect : Reducer.ViewEffect {
data class NavigateToTopic(val topicId: String) : ForYouEffect()
data class NavigateToNews(val newsUrl: String) : ForYouEffect()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment