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

Restoring services #332

Closed
timoxley opened this issue Jan 26, 2019 · 1 comment
Closed

Restoring services #332

timoxley opened this issue Jan 26, 2019 · 1 comment

Comments

@timoxley
Copy link

Probable Bug

Is there a way to re-invoke a service when starting from an initialState with an invoked service?
It seems to work ok so long as the service didn't dispatch any events
but if the service dispatches an event, then it'll never start back up, nor will any activities or actions fire

e.g. https://codesandbox.io/s/53qpm2nr4p

Two saved states at the bottom there. If starting from "withDispatch", (i.e. saved after service dispatched an event) the service will never start.
if saved before it sent the event, "withoutDispatch", i.e. removing the dispatch in the service, then it'll start just fine.

@davidkpiano
Copy link
Member

This might be a duplicate of #307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants