Created
December 20, 2014 22:13
-
-
Save huang47/ad8b320e54cf1ccb1421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profileSwitchSuccesses. | |
startWith(true). | |
flatMapLatest(function () { | |
return cacheExpiryInHomeOnForegrounds. | |
flatMapLatest(function() { | |
return EventManager.observe(EventManager.APP.EVENT_LOGIN_CHECK_DONE). | |
take(1). | |
filter(isLoggedIn); | |
}); | |
}). | |
subscribe(function() { | |
logger.warn("about to refesh UI"); | |
AppUtils.invalidateApplicationCache({includeList : ['lolomo','lolomos','lists']}); | |
// homeNoGate ensure that this is a refresh of lolomo, and no profile gate is shown | |
loggedInLaunch({homeNoGate:true}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment