react-router 5 support
Is your feature request related to a problem? Please describe. I'm embedding React-Admin into a micro-front end architecture. The shared library for the micro-front end is using router v5 I've found this library that provides backward compatibility from router v6 to v5. https://www.npmjs.com/package/react-router-dom-v5-compat
Ask is for react-admin support this compatibility library, or to suggest a way to insert BrowserCompat element if it is possible.
Describe the solution you'd like
Describe alternatives you've considered None
Additional context React-Router Compat Library
Hi, Thank you for your suggestion. React-router v6 was introduced with react-admin v4, which was released more than 3 years ago. We are currently supporting both react-router v6 and v7, which already comes with it's fair share of challenges. So, no, I don't think we will invest time in trying to bring back compatibility with react-router v5.
You may be able to achieve this compatibility in user-land, notably by forcing npm or yarn to override some package resolutions (see yarn’s resolutions or npm’s overrides), but in any case this is not something we will want to merge into the main branch and have to maintain later.
It goes without saying that the preferred solution would probably be to migrate the rest of your architecture to react-router v6 or v7, but I understand this can represent a huge cost in some cases, so I'll let you be the judge.