New answers tagged

0

@wire methods fire when their input parameters change. In your case, you have a parameter of { purchaseId: '$purchaseId' }. I do not see this value being changed in your code, therefore the @wire method wont fire. If your updateInterestList Apex method is doing something that updates your record, you should call refreshApex() instead to refresh the wire


0

Imperative apex methods run as asynchronous JS, i.e. promises. You will need to call the refresh apex method after the promise is fulfilled/rejected. i.e. in the then/catch method of the promise. But you are calling refreshApex after the Promise call. Which will always run before the promise is settled. createRecord(recordInput) .then(result => { ...


Top 50 recent answers are included