Skip to content

remove unnecessary unsafe componentWillReceiveProps - #30

Open
maherzaidoune wants to merge 4 commits into
yeswanth:masterfrom
maherzaidoune:master
Open

remove unnecessary unsafe componentWillReceiveProps#30
maherzaidoune wants to merge 4 commits into
yeswanth:masterfrom
maherzaidoune:master

Conversation

@maherzaidoune

Copy link
Copy Markdown
Contributor

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

@yeswanth

yeswanth commented Jun 5, 2020

Copy link
Copy Markdown
Owner

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

@maherzaidoune

Copy link
Copy Markdown
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
Copy Markdown
Owner

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

@maherzaidoune

Copy link
Copy Markdown
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