I have implemented a promise using the ui/RecordApi to update a record in Salesforce. Strangely that promise never resolves or rejects or even enters finally. Below is a sample code for this. Please note that the record does get updated.
Have you faced this issue? Any help of suggestion is helpful.
import { updateRecord } from 'lightning/uiRecordApi';
export default class Lb2bCheckoutFinalCartV2 extends NavigationMixin(LightningElement) {
someMethod() {
//setting the recordInput
updateRecord(recordInput);
.then(() => {
//Never enters
})
.catch((error) => {
//Never enters
});
.finally(() => {
//Never enters
})
}
}