Seeking suggestions and advice,
I currently have the following 2 lines of code within a react native expo component:
this.props.navigation.navigate("App");
patchUser(this.state.dataSource.userInfo.username, this.state.dataSource.userInfo.firstName,this.state.dataSource.userInfo.lastName, this.state.dataSource.lastLoginTime);
My inquiry is:
Will the function "patchUser()" always be executed, considering that this.props.navigation.navigate("App") is called first and redirects to another component?