-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
isMounted is deprecated when using tab views #3021
Comments
Guys, I have the same issue! How can we fix it? |
@kaym0 Did you found any solution? |
@januswel @andrew @daviscabral @joenoon Is there any solution for this guys? |
Warning: isMounted(...) is deprecated in plain JavaScript React classes. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks. |
@guangyuzhihun What do you mean bro? Is there any solutions for this issue? did you fixed it? |
@aksonov How can I solve this issue dear Pavel? |
That's not an error - it is a warning. Even a few official packages still make references to By the way, this is not even used by |
@daviscabral Thanks buddy. |
That's fine. Please provide a pull-request with your solution. |
I have the same issue too. |
This may be coming from within react-native itself. You can add the following to get rid of the warning until version 0.56 lands.
|
Yes, out now I will post what had to be changed once I get home.
…On Mon, May 21, 2018, 03:51 Alireza Jangi ***@***.***> wrote:
@kaym0 <https://github.com/kaym0> Did you found any solution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3021 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AS02m8KmQAhgTvTmGVQJJXIog4p890Ovks5t0lz2gaJpZM4TxuyX>
.
|
Btw, hide the warning is not a solution. I don't consider a warning a blocker in a release, just a heads-up about possible out of date packages and future unsupported code. |
Same issues here ! |
Please try to reproduce it with Example project and latest version 4.0.0-beta.40 (and RN0.56). Feel free to open if the issue still exists |
Should be fixed in 0.57. |
Thank you sir! 👍🏻👊🏻 |
I get this whenever I go into my tabbed scene ever since I added it. If I view the two components separately they work fine, it's adding the tabs which cause it to break. I've tried various things like unmountScene={true} (pretty sure it doesn't do anything)
Should I mute this error, because everything seems to work okay. I'm just wondering if there is something I'm doing wrong, or if this is an actual issue with the package.
Sorry for formatting, Markup seems to take my two space tabs as if they were like 4 or 5 spaces.
The text was updated successfully, but these errors were encountered: