Skip to content

fix(core): properly propagate rejections in addListenerNative#8405

Open
vamsi2246 wants to merge 1 commit intoionic-team:mainfrom
vamsi2246:fix/addListenerNative-hang
Open

fix(core): properly propagate rejections in addListenerNative#8405
vamsi2246 wants to merge 1 commit intoionic-team:mainfrom
vamsi2246:fix/addListenerNative-hang

Conversation

@vamsi2246
Copy link

Currently, addListenerNative creates a new promise that only handles the success case of the underlying addListener call, causing it to hang on failure. This PR refactors it to use .then() on the original call, ensuring that rejections are correctly propagated. This also fixes an unhandled rejection.

@jcesarmobile
Copy link
Member

please, before you continue creating pull requests, create issues and provide reproductions

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