Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MaximBazarov/a9b5c65f9e0166b2a2a2a7b2bbfa6cbe to your computer and use it in GitHub Desktop.
Save MaximBazarov/a9b5c65f9e0166b2a2a2a7b2bbfa6cbe to your computer and use it in GitHub Desktop.
func profileScreenisAboutToAppear() {
// at that moment we suppose to download information
let action = Downloader.DownloadUserProfile(
baseURL: state.api.profile.baseURL
endpoint: state.api.profile.getProfile
profileID: state.profile.id
authToken: state.auth.token
retryCount: state.api.retryCount
)
core.dispatch(action: action)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment