Skip to content

bug: vue, lifecycle hooks not fired with vue 3.2 setup #23824

Description

@riderx

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

This code in component is never trigger :

  onIonViewDidEnter(() => {
      console.log('About page did enter');
    });

  onIonViewDidLeave(() => {
    console.log('About page did leave');
  });

  onIonViewWillEnter(() => {
    console.log('About page will enter');
  });

  onIonViewWillLeave(() => {
    console.log('About page will leave');
  });

Expected Behavior

this should be triggered during routing

Steps to Reproduce

you can clone : https://github.com/riderx/ionicv6-beta-vue-vite
yarn
and
yarn dev

Code Reproduction URL

https://github.com/riderx/ionicv6-beta-vue-vite

Ionic Info

Ionic:

Ionic CLI : 6.17.0

Utility:

cordova-res (update available: 0.15.3) : 0.15.2
native-run : 1.4.0

System:

NodeJS : v16.7.0
npm : 7.20.3
OS : macOS Monterey

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions