log error
This commit is contained in:
@@ -56,13 +56,15 @@ function DeepLinkNavigationListener() {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
platform.deepLink.getPending()
|
platform.deepLink
|
||||||
|
.getPending()
|
||||||
.then((path) => {
|
.then((path) => {
|
||||||
if (path) navigate(path);
|
if (path) navigate(path);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((err) => {
|
||||||
console.error('Failed to get pending deep link:', error);
|
logError(err, { scope: 'deepLink.getPending' });
|
||||||
});
|
});
|
||||||
|
|
||||||
return platform.deepLink.onNavigate((path) => navigate(path));
|
return platform.deepLink.onNavigate((path) => navigate(path));
|
||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user