Skip to main content
Use this API to stop listening for unhandled Promise rejection events that were registered with my.onUnhandledRejection().

Parameters

Code Example

Remove Specific Listener

Remove All Listeners

Page Lifecycle Management

Pass the same callback function reference to my.offUnhandledRejection() that was used with my.onUnhandledRejection() to remove only that specific listener.

my.onUnhandledRejection

Listen for unhandled rejections

my.offError

Stop listening for error events