Skip to content

bug: vue re-mounts intermediary views when not needed #23914

Closed
@kabzko

Description

@kabzko

Prequisites

Ionic Framework Version

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

Current Behavior

I have IonMenu with a list of routes.

When I push a page(Orders) for the first time all is well.
First
and again when I push to a new page for the second time it renders the new page(Products) and the old page(Orders).
Second
It affects my methods that I created for both pages. It calls all the created methods from both page.
Capture

Here's some video that I recorded
https://user-images.githubusercontent.com/41864097/132933264-769c352c-49ba-4174-9d0c-44719469d752.mp4

Expected Behavior

Old page must not be rendered again when you push to a new page

Steps to Reproduce

Just navigate from menu and check the console which I console log only text for testing.

Code Reproduction URL

https://github.com/kabzko/testroute

Ionic Info

Ionic:

Ionic CLI : 6.17.1

Utility:

cordova-res : 0.15.3
native-run : not installed globally

System:

NodeJS : v14.17.0
npm : 6.14.13
OS : Windows 10

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