storyblok-js icon indicating copy to clipboard operation
storyblok-js copied to clipboard

Bridge has no way to unbind events

Open wiledal opened this issue 2 years ago • 1 comments

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?

wiledal avatar Jul 28 '22 09:07 wiledal

registerStoryblokBridge should also return a function to unregister

const unregister = registerStoryblokBridge(...)

fromthemills avatar Dec 06 '22 14:12 fromthemills