mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Remove altUser since the UserStore is now always being passed as a prop
Also don’t recycle altWhitelabel on logout as the whitelabel stores aren’t dependent on the user.
This commit is contained in:
parent
a020ed6a28
commit
325651b581
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
import { altUser } from '../alt';
|
||||
import { alt } from '../alt';
|
||||
|
||||
|
||||
class UserActions {
|
||||
@ -15,4 +15,4 @@ class UserActions {
|
||||
}
|
||||
}
|
||||
|
||||
export default altUser.createActions(UserActions);
|
||||
export default alt.createActions(UserActions);
|
||||
|
@ -4,5 +4,4 @@ import Alt from 'alt';
|
||||
|
||||
export let alt = new Alt();
|
||||
export let altThirdParty = new Alt();
|
||||
export let altUser = new Alt();
|
||||
export let altWhitelabel = new Alt();
|
||||
|
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
import { alt, altWhitelabel, altUser, altThirdParty } from '../alt';
|
||||
import { alt, altThirdParty } from '../alt';
|
||||
|
||||
import EventActions from '../actions/event_actions';
|
||||
|
||||
@ -56,9 +56,8 @@ class UserStore {
|
||||
EventActions.userDidLogout();
|
||||
|
||||
// Reset all stores back to their initial state
|
||||
// Don't recycle the whitelabel stores since they're not dependent on login
|
||||
alt.recycle();
|
||||
altWhitelabel.recycle();
|
||||
altUser.recycle();
|
||||
altThirdParty.recycle();
|
||||
|
||||
// Since we've just logged out, we can set this store's
|
||||
@ -77,4 +76,4 @@ class UserStore {
|
||||
}
|
||||
}
|
||||
|
||||
export default altUser.createStore(UserStore, 'UserStore');
|
||||
export default alt.createStore(UserStore, 'UserStore');
|
||||
|
Loading…
Reference in New Issue
Block a user