diff options
author | 2019-04-11 16:24:06 +0200 | |
---|---|---|
committer | 2019-04-11 16:24:06 +0200 | |
commit | 0ab329996c8fa585e9416727c6169c63928d938a (patch) | |
tree | 6a7a02699d83069d6eeeca53311272b6267126ab | |
parent | minor clean up (diff) | |
download | ferdium-app-0ab329996c8fa585e9416727c6169c63928d938a.tar.gz ferdium-app-0ab329996c8fa585e9416727c6169c63928d938a.tar.zst ferdium-app-0ab329996c8fa585e9416727c6169c63928d938a.zip |
Don't invalidate user request on componentWillMount
-rw-r--r-- | src/containers/settings/AccountScreen.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index 4ac7328c6..b3f967353 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js | |||
@@ -11,14 +11,6 @@ import ErrorBoundary from '../../components/util/ErrorBoundary'; | |||
11 | import { WEBSITE } from '../../environment'; | 11 | import { WEBSITE } from '../../environment'; |
12 | 12 | ||
13 | export default @inject('stores', 'actions') @observer class AccountScreen extends Component { | 13 | export default @inject('stores', 'actions') @observer class AccountScreen extends Component { |
14 | componentWillMount() { | ||
15 | const { | ||
16 | user, | ||
17 | } = this.props.stores; | ||
18 | |||
19 | user.getUserInfoRequest.invalidate({ immediately: true }); | ||
20 | } | ||
21 | |||
22 | onCloseWindow() { | 14 | onCloseWindow() { |
23 | const { user } = this.props.stores; | 15 | const { user } = this.props.stores; |
24 | user.getUserInfoRequest.invalidate({ immediately: true }); | 16 | user.getUserInfoRequest.invalidate({ immediately: true }); |