Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return a promise for getReferrerInfoAsync on web #4777

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

haileyok
Copy link
Contributor

Why

Forgot to actually return a promise here. We use a promise because that matches the way it works on native.

Test Plan

The app will actually load now (main.bsky.dev ftw, thanks @mary-ext for catching it really fast! ❤️)

Copy link

render bot commented Jul 12, 2024

Copy link

github-actions bot commented Jul 12, 2024

Old size New size Diff
6.62 MB 6.62 MB 109 B (0.00%)

@@ -8,27 +8,29 @@ export function getGooglePlayReferrerInfoAsync(): Promise<GooglePlayReferrerInfo
}

export function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

alternatively i think we can mark this as async?

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

ok but i think making the function async is simpler

@haileyok
Copy link
Contributor Author

lol...yea long day 🙃

@haileyok haileyok merged commit f021c06 into main Jul 12, 2024
6 checks passed
haileyok added a commit that referenced this pull request Aug 1, 2024
haileyok added a commit that referenced this pull request Aug 1, 2024
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.

2 participants