Client: replace deprecated method 'componentWillReceiveProps'
This commit is contained in:
parent
63f64d8acb
commit
9f9bda005a
@ -12,9 +12,9 @@ import { isLoggedIn } from '../../utils'
|
||||
|
||||
class UserForm extends React.Component {
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
componentDidUpdate(prevProps) {
|
||||
if (
|
||||
(nextProps.location.pathname !== this.props.location.pathname)
|
||||
(prevProps.location.pathname !== this.props.location.pathname)
|
||||
) {
|
||||
this.props.onEmptyForm()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user