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

Remove default callback function from setExternalUserId #1136

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

rgomezp
Copy link
Contributor

@rgomezp rgomezp commented Jan 7, 2021

Motivation: this default callback isn't necessary because in the Java bridge the callback parameter is of type final which is nullable.

This was prompted by the need for a workaround for a crash caused by having the external id and email set. If both are set, currently the native SDK triggers the onSuccess of each setter method to fire independently which is causing the passed in callback to fire twice, which is prohibited by React Native (crashes).

Motivation: this default callback isn't necessary because in the Java bridge the callback parameter is of type `final` which is `nullable`.

This was prompted by the need for a workaround for a crash caused by having the external id and email set. If both are set, currently the native SDK triggers the `onSuccess` of each setter method to fire independently which is causing the passed in callback to fire twice, which is prohibited by React Native (crashes).
@rgomezp rgomezp requested a review from jkasten2 January 7, 2021 23:48
@rgomezp rgomezp marked this pull request as ready for review January 8, 2021 00:40
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.

None yet

2 participants