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

Showing snakbar is not properly handled #163

Open
atick-faisal opened this issue Feb 9, 2024 · 0 comments
Open

Showing snakbar is not properly handled #163

atick-faisal opened this issue Feb 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@atick-faisal
Copy link
Owner

        UiState.Error -> {
            LaunchedEffect(onShowSnackbar) {
                onShowSnackbar(state.t?.message.toString(), null)
            }
        }

The LaunchedEffect is triggered whenever the UiState is an Error instance, even if the error message doesn't change. This could lead to repeated snackbars unless it's intentional.

@atick-faisal atick-faisal self-assigned this Feb 9, 2024
@atick-faisal atick-faisal added the bug Something isn't working label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant