This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Is there an event that catches on Route change ? #657
Unanswered
BatuhanCakir
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
you can at your root/layout add an useEffect on segments or pathname import {useSegments} from 'expo-router'
[...]
const segments = useSegments()
useEffect(() => {
// would trigger on each route changes
}, [segments]) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a feature that should warn the user if he wants to save the input before switching the tab. Is there an event that provides this information?
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions