-
Spike
-
Resolution: Done
-
Critical
-
None
-
None
-
None
-
None
-
False
-
None
-
False
-
-
-
HAC Infra OCP - Sprint 234, HAC Infra OCP - Sprint 236
One of the requirements for adopting OpenShift Dynamic Plugin SDK (which is the new version of HAC Core SDK) is to bump the version of react-router to version 6.
The issue with upgrading the react-router is that if we just upgrade to v6 all of our DynamicPlugins would stop working since they are using router v5.
For migration from v5 to v6 there is a `react-router-dom-v5-compat` package which should ease the migration process.
We need to confirm that our dynamic plugins will keep working when install the ``react-router-dom-v5-compat` package for the migration process.
AC:
- Confirm that the `react-router-dom-v5-compat` package will allow plugins using v5 to work with no code changes.
Note:
- Install `react-router-dom-v5-compat` and start the migration in 4.14. Give plugins a grace period to update - https://reactrouter.com/en/main/upgrading/v5
- Martin Marosi has a possible approach that post-processes shared modules before the modules are passed to plugins at runtime
- blocks
-
CONSOLE-3281 React Router - Core extension types depend on a newer version of react-router than console does
- Closed
- is blocked by
-
CONSOLE-2501 Bump Typescript to latest stable 4.x version
- Closed