in app/launch/src/components/Application/useOnMountRouting.js [54:73]
function handleDeepLink() {
const activity = resolveActionRoute(shareData.current)
if (!activity) {
return
}
// If we're not able to handle the route,
// discard and reset the history state
if (!isReferral || !Object.keys(routingHandlers).includes(activity)) {
return
}
// This is a common react problem
// Since we have to wait for the SDK to get initialized
// but can't watch the create / features objects,
// we need to rebuild at routing time.
const { showing, ...payload } = shareData.current
// Trigger the route handler
routingHandlers[activity](payload, sdk, { showing })
}