Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
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.