Ionic-framework: feat: Support react-router MemoryRouter

Created on 14 Nov 2019  路  4Comments  路  Source: ionic-team/ionic-framework

Feature Request

Ionic version:


[x] 4.x

Describe the Feature Request

I need to be able to change routes without changing the browser URL and history stack. Reason: when accessing the app in mobile Safari, swiping on the edges moves through history. Ionic apps with menus will register a lot of accidental backward navigations.

Describe Preferred Solution

Pass a prop to IonReactRouter to use memory, e.g.:

<IonReactRouter memory>
  {/* ... */}
</IonReactRouter>
react

All 4 comments

Nice. Super excited to have this.

For future readers: it is now available as <IonReactMemoryRouter />. 馃憤

There will be a blog soon on some guidance around testing with react testing lib.

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandyscarney picture brandyscarney  路  3Comments

brandyscarney picture brandyscarney  路  3Comments

masimplo picture masimplo  路  3Comments

alan-agius4 picture alan-agius4  路  3Comments

vswarte picture vswarte  路  3Comments