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

How to work around bootstrapper action publishing label before listener set up #314

Open
dalewking opened this issue Dec 7, 2021 · 5 comments
Labels
question Further information is requested

Comments

@dalewking
Copy link

I'm running into an issue where processing a BootStrapper action can cause a label to be published asynchronously as soon as the store is created, but it happens before I can subscribe to the labels. Outside of scrapping the bootstrapper and creating an Initialize intent I am not sure how to fix this.

@arkivanov
Copy link
Contributor

You can opt-out from the automatic Store initialization and call its init method manually. It's available in the version 3.x. Please refer to the documentation: https://arkivanov.github.io/MVIKotlin/store.html

Also you can pass a trigger to a Store, please check the following: https://github.com/arkivanov/MVIKotlin/issues/188

@arkivanov arkivanov added the question Further information is requested label Dec 7, 2021
@dalewking
Copy link
Author

What do you foresee as the timeline for a release with this feature? If it will be released in a couple of months I will just upgrade to the alpha and to the release when it is released. If it is more like 6 months then I will probably have to switch to an Initialize intent.

@dalewking
Copy link
Author

Or is there any chance of having you do a 2.1.0 release with this fix?

@arkivanov
Copy link
Contributor

It is definitely no more than 3 months.

@arkivanov
Copy link
Contributor

Unfortunately 2.1.0 with this change does not look possible, because it is a breaking API change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants