ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Router.push if ginving error in7.6.3 version

Open nitbrillio opened this issue 1 year ago • 1 comments

Ionic version:

[ ] 4.x [ ] 5.x [x] 7.x I'm submitting a ...

[x] bug report [ ] feature request

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

import { useIonRouter } from '@ionic/react';
    const router = useIonRouter();
    const onClick = () => {
         router.push('/pathToPage')
    }

Other information: router.push() is giving error

Ionic info:

Screenshot 2024-01-10 at 4 14 32 PM

nitbrillio avatar Jan 10 '24 10:01 nitbrillio

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

For a guide on how to create a good reproduction, see our Contributing Guide.

ionitron-bot[bot] avatar Jan 10 '24 14:01 ionitron-bot[bot]

This issue is being closed due to insufficient reproduction. If this is still a problem in the latest version of Ionic, please open a new issue and ensure the template is fully filled out. Thank you!

averyjohnston avatar Jan 24 '24 15:01 averyjohnston