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

file_store interferes with deleting master bus state #32

Open
toomim opened this issue Jun 15, 2017 · 0 comments
Open

file_store interferes with deleting master bus state #32

toomim opened this issue Jun 15, 2017 · 0 comments

Comments

@toomim
Copy link
Member

toomim commented Jun 15, 2017

If you have file_store enabled (which it is by default), then you can't delete state from the master bus.

This is because statebus doesn't yet gracefully handle multiple handlers implemented from different libraries, and file_store needs to know when something is deleted (e.g. on_delete) but all we expose now is the function for controlling deletes (e.g. to_delete).

I need to fix this design. Meanwhile, you can add this line to your code as a workaround:

bus('*').to_delete = (t) => {t.done()}

...where bus is the name of your master bus.

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