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:
MohammadReza Mahmoudi 2023-05-31 03:12:22 +03:30 committed by GitHub
parent 5d0a3e6c65
commit 442d453600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View file

@ -47,6 +47,10 @@ export const ProfileScreen = withAuthRequired(
)
useSetTitle(combinedDisplayName(uiState.profile))
useEffect(() => {
setHasSetup(false)
}, [route.params.name])
useFocusEffect(
React.useCallback(() => {
let aborted = false