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

kraken.methodChannel.setMethodCallHandler 多次调用会覆盖之前的回调函数 #34

Closed
andycall opened this issue Mar 5, 2021 · 0 comments · Fixed by #96
Closed

Comments

@andycall
Copy link
Member

andycall commented Mar 5, 2021

现在只会保存最后一个函数的引用,如果业务中存在多个使用 methodChannel 的模块,那么将会导致只有最后一个模块成功监听到 methodChannel 的回调

kraken.methodChannel.setMethodCallHandler(() => {
// not working
});


kraken.methodChannel.setMethodCallHandler(() => {
// works
});
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

Successfully merging a pull request may close this issue.

1 participant