Skip to content

Create observeUiState Checker #2

@galex

Description

@galex

When observing a child of Actionable, the developer could forget to call state.onAction {} to actually manage the one-time events sent from the ViewModel.

We can write a checker on observeUiState that finds its sole parameter and checks that .onAction has indeed been called, and it not, it will show an error on the function itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions