grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
141 stars 21 forks source link

Migrate react-router from v5 to v6 #608

Open leventebalogh opened 9 months ago

leventebalogh commented 9 months ago

Why?

Grafana core allows plugins to start using the v6 version of react-router, and hopefully we will deprecate using v5 in plugins this year. @grafana/scenes is used by internal app plugins, which means that before migrating those we need to have a version of the scenes package that supports versions 6.x.x as well.

How?

For the scenes-app follow our migration guide using create-plugin, and for scenes rely on the official react-router v5->v6 migration guide.

Some of the things that need too be changed: (list is not complete)