I'm getting data from server using @wire when the @api property changed. How to show spinner whenever getting data from server?
@api classId;
@tract isLoading = true;
@wire(wiredMethod, { classId: '$classId' })
wiredProperty({ data, error }) {
this.isLoadig = false;
});
First time it is working fine on second time it is not showing spinner.
If I'm setter getter for classId it shows [Maximum call stack size exceeded]
this error.