You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

BUI: Is IExtensionPromise Promises/A+ compliant?

Accepted answer
19
Views
1
Comments
edited Jul 3, 2018 5:25PM in UI Extensibility 1 comment

Content

Hi,

I was using IExtensionPromise interface to handle some asynchronous operations with a BUI extension. I noticed that the behavior of IExtensionPromise slightly differs from that of native JavaScript Promise.

IExtensionPromises behave more like pre-3.0 jQuery's promises. It has the same 'Error Handling' problems as described in this stackoverflow post about jQuery promises. Due to these issues, I was considering using the native Promise for my extension. I have these questions,

  1. Is IExtensionPromise Promises/A+ compliant?
  2. Would using native JavaScript Promise instead of IExtensionPromise pose any issues/risks with my program?
  3. Is there any inherent benefit or extra capability provided by the Extensibility framework's IExtensionPromise?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!