Skip to content

feat: React Router v7 support #24177

Open
@ptmkenny

Description

@ptmkenny

Prerequisites

Describe the Feature Request

Ionic React currently uses React Router 5, which is tagged as classic on yarn.

React Router v6 received a stable release on November 3, 2021. Three years passed and Ionic released Ionic React versions 6, 7, and 8, but none of these supported React Router 6.

React Router v7 received a stable release on November 22, 2024.

It would be great to be able to use a version of React Router that is actively being updated and makes use of the new features in React 18 and 19.

Describe the Use Case

React Router 7 adds optional Remix features to React Router as "framework mode". In addition, it has code splitting features with React 18 and 19 that v5 does not.

Describe Preferred Solution

@ionic/react-router should update to React Router 7.

Issues Fixed in React Router 6/7 but not 5

React Router 5 is only getting critical security fixes since development has effectively ended.

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