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

Expose stop() method #38

Open
millette opened this issue Jun 27, 2018 · 1 comment
Open

Expose stop() method #38

millette opened this issue Jun 27, 2018 · 1 comment

Comments

@millette
Copy link

I'm using finity with react and I need to stop the FSM when a component will be unmounted.

I figured a few ways to call the internal stop() method but they seem a bit hacky. Could we expose the stop() method, the same way start() is available?

Or do I need a custom "stop" event and handle it that way?

@nickuraltsev
Copy link
Owner

@millette I considered exposing stop() but decided against it because of some corner cases. I agree that stop could be useful though. Let me look into this again.

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