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) :
![Screenshot 2023-08-01 at 15 13 25](https://private-user-images.githubusercontent.com/2178244/257524761-45df763d-bfc1-4d26-b469-e3a37d1b3e3a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNTY5MjMsIm5iZiI6MTcxOTI1NjYyMywicGF0aCI6Ii8yMTc4MjQ0LzI1NzUyNDc2MS00NWRmNzYzZC1iZmMxLTRkMjYtYjQ2OS1lM2EzN2QxYjNlM2EucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjRUMTkxNzAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWNjYzc1ZGI0MzA0NWZhNjkwMzJjM2Y2MjFkZTBhMmU3ODk0M2NhOTE1ZjdkNmZjZjdmMzMwYjA2YmJkZmU3MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.6WevlkFryJa8tZNnWo-Rs7gwjjdArxYb3Yo0bv_r744)
![Screenshot 2023-08-01 at 15 13 34](https://private-user-images.githubusercontent.com/2178244/257524770-9bee0b5c-9906-4610-bf49-08a018a64c31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNTY5MjMsIm5iZiI6MTcxOTI1NjYyMywicGF0aCI6Ii8yMTc4MjQ0LzI1NzUyNDc3MC05YmVlMGI1Yy05OTA2LTQ2MTAtYmY0OS0wOGEwMThhNjRjMzEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjRUMTkxNzAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODQ0MjkwOGU3ZjgwNTFjMjY2YzhlMDgzNzkxNjkzZDljYWY3YmZlMzdmYzcyMTY3YzBmNzI1NTI4NjQwYTUyZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Nqs_XeNnOfICVQzOzt1yi44C1KOEHF-fVsX_WGU-xn8)
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