grafana / explore-profiles

Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
GNU Affero General Public License v3.0
18 stars 1 forks source link

App plugin: Update to react-router v6 #247

Open tolzhabayev opened 1 week ago

tolzhabayev commented 1 week ago

Previous issue https://github.com/grafana/explore-profiles-deprecated/issues/365, Previous PR https://github.com/grafana/explore-profiles-deprecated/pull/430

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.

grafakus commented 15 hours ago

To whoever starts this task yarn create @grafana/plugin update will be the trickiest part. Maybe it's worth scaffolding a new plugin...