Compare commits

...

2 Commits

Author SHA1 Message Date
Samuel Newman 232474dc46 fix link crash 2025-09-29 14:57:33 +03:00
Samuel Newman 2e2c76b8f8 fix link crash 2025-09-29 14:55:07 +03:00
+2 -2
View File
@@ -165,8 +165,8 @@ export function useLink({
if (isNative && screen !== 'NotFound') {
const state = navigation.getState()
// if screen is not in the current navigator, it means it's
// most likely a tab screen
if (!state.routeNames.includes(screen)) {
// most likely a tab screen. note: state can be undefined
if (!state?.routeNames.includes(screen)) {
const parent = navigation.getParent()
if (
parent &&