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

Warning: Portal组件 EventEmitter.removeListener方法已被弃用 #1200

Closed
1 task done
SoonIter opened this issue Oct 30, 2021 · 1 comment
Closed
1 task done

Comments

@SoonIter
Copy link

SoonIter commented Oct 30, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

这个方法将被废弃,总是报警告,希望修改一下
Console Warning
EventEmitter.removeListener(' ANT_ DESIGN_ MOBILE_ RN_ REMOVE_ PORTAL', Method has been deprecated.Please instead use remove() on the subscription returned by EventEmitter.addListener'.

What does the proposed API look like?

{
key: "componentWillUnmount",
value: function componentWillUnmount() {
this._mountSubscription.remove();
this._unmountSubscription.remove();
// TopViewEventEmitter.removeListener(addType, this._mount);
// TopViewEventEmitter.removeListener(removeType, this._unmount);
},
},

@809388027
Copy link

I also encountered the same problem, and now the prompt is obsolete

@1uokun 1uokun closed this as completed in 78cf9a9 Oct 8, 2022
@1uokun 1uokun mentioned this issue Oct 13, 2022
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

3 participants