Fix profile load issue + enhancement of profile isCurrent style (#764)
* fix profile isActive issue * fix myProfile load issue when visiting other profiles first * fix lint issues * change currentRouteName to currentRouteInfo
This commit is contained in:
parent
5d0a3e6c65
commit
442d453600
2 changed files with 12 additions and 5 deletions
|
@ -47,6 +47,10 @@ export const ProfileScreen = withAuthRequired(
|
|||
)
|
||||
useSetTitle(combinedDisplayName(uiState.profile))
|
||||
|
||||
useEffect(() => {
|
||||
setHasSetup(false)
|
||||
}, [route.params.name])
|
||||
|
||||
useFocusEffect(
|
||||
React.useCallback(() => {
|
||||
let aborted = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue