0

I got that Memory Exceed error in my Vue typescript Code

public async created() {
  if (this.item) {
    await this.loadAppointments();
  }
}

private async loadAppointments(_items?: Appointments) {
  const _item: AppointmentsDetails = await LicenseSubscriptionAPI.getInstance().getAppointments();
  // console.log(_item.app)
  this.item =_item.app;
}

Dharman
  • 30,962
  • 25
  • 85
  • 135
M.Abdullah Iqbal
  • 219
  • 1
  • 17

1 Answers1

0

Remove the Updated and Remove the async await call from Created Hook where we call the LoadAppointments() function

public created() {
this.loadAppointments();
}
Dharman
  • 30,962
  • 25
  • 85
  • 135
M.Abdullah Iqbal
  • 219
  • 1
  • 17