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

Review pipeline initializations #2080

Open
luizgrp opened this issue Feb 29, 2024 · 0 comments
Open

Review pipeline initializations #2080

luizgrp opened this issue Feb 29, 2024 · 0 comments

Comments

@luizgrp
Copy link
Member

luizgrp commented Feb 29, 2024

          The answer seems to be in [DAC](https://developer.android.com/topic/architecture/ui-layer/state-production#initializing-state-production):

Flow APIs allow for this with the started argument in the stateIn method.

Which seems to be what NiA is using.

Then it continues:

In the cases where this is inapplicable, define an idempotent initialize() function to explicitly start the state production pipeline as shown in the following snippet:

So we should re-evaluate our cases and see when the stateIn + started WhileSubscribed is applicable.

Originally posted by @luizgrp in #2078 (comment)

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

No branches or pull requests

1 participant