add action/method to flush storage and reload the session
This commit is contained in:
@@ -479,6 +479,14 @@ export default React.createClass({
|
||||
case 'logout':
|
||||
Lifecycle.logout();
|
||||
break;
|
||||
case 'flush_storage_reload':
|
||||
// flushStorageAndReload will dispatch actions
|
||||
// which we can't do in a dispatch handler
|
||||
// so yield first
|
||||
setTimeout(() => {
|
||||
Lifecycle.flushStorageAndReload();
|
||||
}, 0);
|
||||
break;
|
||||
case 'start_registration':
|
||||
this._startRegistration(payload.params || {});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user