fix: back button mounts after first app launch
This commit is contained in:
parent
92119baa5e
commit
4d40230864
@ -34,7 +34,7 @@ export function useBackButton() {
|
||||
}
|
||||
|
||||
function isRootLevelPage(pathname: string) {
|
||||
if (exclude.some((path) => pathname.includes(path))) return false;
|
||||
if (exclude.includes(pathname)) return false;
|
||||
|
||||
return pathname.split('/').filter(Boolean).length === 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user