Replies: 1 comment
-
for some reason only happens on expo router 2.0.1, so came back to 2.0.0 for now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
since i upgraded to sdk49 and expo router v2, i get a warning about using redirect on that is deprecated and that i should use router.redirect.
The issue is i don't use that at all anywhere in my code, i did project wide search multiple time and i can't find one place where i do a redirect on component.
since i see no one talking about this, i assume it's something in my codebase but can't pin point where.
this is the warning content i get but no clue where does this come from (i get the warning at app launch) :
Does anyone has a clue as to why i get this or already got it and solved it?
EDIT:
i found what's causing the warning but no clue why or what do i do wrong here.
so i get the warning when my
useProtectedRoute
redirect to a screen with<Stack.Screen ... />
in his code like :i tried removing the
headerShown
but doesn't change anything.if i put the
<Stack.Screen options={{}}
in the_layout
i remove the warning but i need in some screen to change the option on the screen itself so any reason why it's a warning now?Beta Was this translation helpful? Give feedback.
All reactions