0

I'm working with ionic react and I want to use useIonViewDidEnter in the menu component but useIonViewDidEnter in the menu component doesn't work and nothing showing in the console, anyone can help, please?

    const ManagerMenu: React.FC = () => {
    
    useIonViewDidEnter(() => {
    console.log('isAuthorizedToSeeContracts')
    
    })
buzatto
  • 9,704
  • 5
  • 24
  • 33

1 Answers1

0

It only works in pages I believe.

I suggest you manage the authState either through a property, context, or something else.

Aaron Saunders
  • 33,180
  • 5
  • 60
  • 80