Promise | function(controller: AbortController): Promise
promisewill cancel any pending promise and listen to the new one. The promise function is automatically invoked during component construction. If
promiseis initially undefined, the Ember Await state will be
reloadwill not do anything when
promisehas been passed as property not a function.
function(args: any, controller: AbortController): Promise
deferis commonly used to send data to the server following a user action, such as submitting a form. You can use this in conjunction with
promiseto fill the form with existing data, then updating it on submit with
Be aware that when using both
defer, the shape of their fulfilled value should match, because they both update the same
any | Error
error(if instance of Error); useful for server-side rendering. When an
initialValueis provided, the
promisewill not be invoked on first render if it is a function. Instead,
statuswill be immediately set to
rejectedand your components will render accordingly. If you want to trigger the
promiseregardless, you can call
onRejectis not invoked in this case.
function(data: any): void
function(reason: Error): void
cancel()or automatically due to arguments changes or unrendering.