grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.36k stars 262 forks source link

App plugin: Update to react-router v6 #4031

Open leventebalogh opened 4 months ago

leventebalogh commented 4 months ago

Starting from Grafana 10, plugins can start using the v6 of react-router. Overall, react-router v6 aims to simplify route configuration and provide a more flexible and intuitive API for developers.

Why?

We are going to deprecate using react-router v5 in plugins from Grafana 11, and we would like to make sure our internal app plugins are using the v6 version by the time we finish migrating Grafana core itself.

How?

We have created a migration guide for plugins (please see the links below), and also don't hesitate to reach out in #grafana-plugins-platform in Slack in case you have any questions.

joeyorlando commented 1 month ago

added this to "To Be Groomed" because it appears we are currently using a deprecated version of react router (Grafana 11 has been out for ~2 months as of the writing of this comment)

teodosii commented 5 days ago

Blocked until https://github.com/grafana/scenes/issues/608 is sorted out - Right now all other pages in OnCall work with v6, except for Insights which uses scenes