wire.data.DataPromise
Methods
Events
const promise = new wire.data.DataPromise();
promise
.done( (data) => {
// data is avaialble
})
.processing( () => {
// new query is running
})
.fail( (ex) => {
// processing failed
// do something with the exception object
})
.always( () => {
// all done whether fail or success
// clean up
});Last updated
Was this helpful?