Brian Vaughn
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/blog/2018-06-07-you-probably-dont-need-derived-state.md
|
@ -166,7 +166,7 @@ class EmailInput extends Component { |
|
|
if (props.userID !== state.prevPropsUserID) { |
|
|
if (props.userID !== state.prevPropsUserID) { |
|
|
return { |
|
|
return { |
|
|
prevPropsUserID: props.userID, |
|
|
prevPropsUserID: props.userID, |
|
|
email: props.email |
|
|
email: props.defaultEmail |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
return null; |
|
|
return null; |
|
|