You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm using the protected route system but i noticed when i tried to use deeplink that it will be rendered before the protected hook can act so, what is happening is that it render the protected route and then it redirect.
Which create issues because it trigger the calls on the protected route which should not be possible.
Is there any way to prevent that and make protected route work on the deeplinks too? like hook into react-navigation before it render to redirect or not?
I think one solution is HOC but then i need to do it on every screen which makes group from expo-route kind of useless to me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i'm using the protected route system but i noticed when i tried to use deeplink that it will be rendered before the protected hook can act so, what is happening is that it render the protected route and then it redirect.
Which create issues because it trigger the calls on the protected route which should not be possible.
Is there any way to prevent that and make protected route work on the deeplinks too? like hook into react-navigation before it render to redirect or not?
I think one solution is HOC but then i need to do it on every screen which makes group from expo-route kind of useless to me.
Beta Was this translation helpful? Give feedback.
All reactions