typescriptvuejs2lifecycleapplication-lifecycle

How to Resolve the Error of maximum memory exceeds


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;
}


Solution

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

    public created() {
    this.loadAppointments();
    }