Title: Component don't re-render after redirecting at Reactjs with mobx
Tags: reactjs;react-router;mobx
Question: I made sign up page with mobx lhuffman@example.net.
When I submit after filling in information,
if there is an error, it runs redirect like history.push.
So when I use history.push('/') like home url,
it re-render well.
But when I want to re-render on the same url because of same email check,
it sends to url redirected like history.push('/signup').
Unlike '/', it doesn't rerender. So the ex-email duplicated is left on it.
Since I made a reset of email state on componentwillUnmount,
typed email must be dissapeared like pushing F5.
Could you recommend some solution? Thank you so much!

``` // In mobx store,

 @action submitSignUp = () =&gt; {
    const joinData = {
      userName: this.initialState.register.userName,
      email: this.initialState.register.email,
      password: this.initialState.register.password,
      passwordConfirm: this.initialState.register.passwordConfirm,
    };
    axios
      .post('user/join', joinData)
      .then((response) =&gt; {
          if (response.data === true) {
          history.push('/signup'); 
        }
      })
      .catch((error) =&gt; {
        console.log(error);
      });
  };
```




{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2019:00:04/13/19', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<reactjs><react-router><mobx>', 'Title': "Component don't re-render after redirecting at Reactjs with mobx", 'ViewCount': 73, 'id': 55667505, 'user_AboutMe': '', 'user_AccountId': 15286375.0, 'user_DisplayName': 'Thomas Jason', 'user_Reputation': 528.0, 'user_Views': 71.0, 'user_id': 11029292.0}}