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

Bridge has no way to unbind events #99

Open
wiledal opened this issue Jul 28, 2022 · 1 comment
Open

Bridge has no way to unbind events #99

wiledal opened this issue Jul 28, 2022 · 1 comment

Comments

@wiledal
Copy link

wiledal commented Jul 28, 2022

StoryblokBridgeV2 has bridge.on(...) but no bridge.off(...).

This can be a major issue for obvious reasons.
If you're implementing an Event Emitter-like pattern, please allow us to also unsubscribe from events!

I also cannot find the repository for the bridge.js, is it closed source?

@fromthemills
Copy link

registerStoryblokBridge should also return a function to unregister

const unregister = registerStoryblokBridge(...)

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

2 participants