Skip to content

Allow setting the default backstackVisible and clearHistory options to the Frame when changing its children #513

@msaelices

Description

@msaelices

See that sample:

<template>
  <Frame>
    <component :is="rootPage" />
  </Frame>
</template>
<script>
export default {
  computed: {
    rootPage (): {
      if (condition1) {
         return page1
      } else if (condition2) {
         return page2
      }
    }
  }
}
</script>

If in the app, we start having the condition1 set to true we are going to see the page1. But, if after a while the condition1 is false and condition2 is true, the frame will navigate to page2 but without controlling the backstack and the navigation history, so the user may click in the back button to go again to page1, which may be not desired.

It should be great if we can define the default navigation options if some page is mounted in a frame, like this:

<Frame :backstackVisible="false">
    <component :is="rootPage" />
</Frame>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions