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

Refactor after Composable discussions. #133

Merged
merged 5 commits into from
Mar 1, 2021
Merged

Conversation

igorescodro
Copy link
Owner

@igorescodro igorescodro commented Mar 1, 2021

After a great discussion in kotlinlang Slack, some refactor were made to update the hot flows to cold flows, giving more lifecycle control and avoiding multiple recompositions in different screens.

Special thanks to @adamp.

Subscription to the list of tasks updated from a hot to a cold flow.
This way we avoid leaking the data and unnecessary data loads when the
user is in other screen/composable.
Subscription to the list of tasks updated from a hot to a cold flow.
This way we avoid leaking the data and unnecessary data loads when the
user is in other screen/composable.
Subscription to the list of tasks updated from a hot to a cold flow.
This way we avoid leaking the data and unnecessary data loads when the
user is in other screen/composable.
The older names did not represent the idea of creating a flow of states.
Names were updated to reflect so.
In order to avoid multiple calls to the Flow<*State>, now it is
remembered inside the @composable.
@igorescodro igorescodro merged commit ebf6128 into alkaa-2.0 Mar 1, 2021
@igorescodro igorescodro deleted the refactor/flow branch March 1, 2021 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant