Skip to content

fix: invalidate deeplink timeout in new nav #trivial#11287

Merged
brainbicycle merged 1 commit intomainfrom
brian/deeplink-expired
Dec 16, 2024
Merged

fix: invalidate deeplink timeout in new nav #trivial#11287
brainbicycle merged 1 commit intomainfrom
brian/deeplink-expired

Conversation

@brainbicycle
Copy link
Copy Markdown
Contributor

This PR resolves []

Description

Invalidate the timeout for our little failed deeplink tracking that didn't get carried over to new nav.

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

  • fix broken deeplink tracking - brian

Need help with something? Have a look at our docs, or get in touch with us.

@ArtsyOpenSource
Copy link
Copy Markdown
Contributor

This PR contains the following changes:

  • Dev changes (fix broken deeplink tracking - brian - brainbicycle)

Generated by 🚫 dangerJS against 4b5b95a

Comment on lines +85 to +87
if (currentRoute && Platform.OS === "ios") {
LegacyNativeModules.ARTDeeplinkTimeoutModule.invalidateDeeplinkTimeout()
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be also invalidated within the handle deep hook?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could but I think it would make it less valuable, the idea is to see if the deeplink successfully resulted in navigation, so if we put it there something could still go wrong in the navigate function or more likely the thread is busy and the navigation never gets called

@brainbicycle brainbicycle merged commit 6929cd0 into main Dec 16, 2024
@brainbicycle brainbicycle deleted the brian/deeplink-expired branch December 16, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants