Skip to content

remove unnecessary unsafe componentWillReceiveProps #30

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

remove unnecessary unsafe componentWillReceiveProps #30

wants to merge 4 commits into from

Conversation

maherzaidoune
Copy link
Contributor

use this.props.selectedTab instead of state.selected and remove unnecessary logic inside componentWillReceiveProps

@yeswanth
Copy link
Owner

yeswanth commented Jun 5, 2020

Hi @maherzaidoune Do you want to write testcases for this?

@maherzaidoune
Copy link
Contributor Author

Hi @maherzaidoune Do you want to write testcases for this?

I don't see the need for writing test for just that commit while the whole project has no tests, anyway I'm using that in production with no problems, I'll write tests in weekend If I had time

@yeswanth
Copy link
Owner

@maherzaidoune Let me know if this is still valid. I will go ahead and merge it.

@maherzaidoune
Copy link
Contributor Author

@maherzaidoune Let me know if this is still valid. I will go ahead and merge it.

I'm using that from my fork till now

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 this pull request may close these issues.

2 participants