Refresh HomePage After Modal Is Closed

I have a homepage and a comment page. When I close the modal (comment page) , I want the homepage to refresh so that It can update the Comment Counts. I can refresh the homepage by calling ionViewWillEnter() function.

My code:

    async openModal() {
      const modal = await this.modalController.create({
        component: CommentsPage,
        componentProps: {
          postId: this.postID

      modal.onDidDismiss(() => { this.ionViewWillEnter(); }); //Error: Expected 0 arguments, but got 1.ts(2554)

      return await modal.present();

Comment Page:

  async closeModal() {

If u change the data in the ondismiss handler angular will update your view

Calling ionViewWillEnter is never a good idea nor thinking in terms of a page refresh as an explicit action (in an angular project)