Skip to content

Scenes App: Update to use react-router v6 #1422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leventebalogh
Copy link
Collaborator

@leventebalogh leventebalogh commented Dec 19, 2024

Related PR: grafana/scenes#979

Note

This PR is still using the 6.0.0--canary.979.12373078054.0 canary version of the @grafana/scenes package. It will get updated once the major version goes out.

What changed?

This PR updates the scaffolded scenes-app template to use the v6 version of react-router as well.

  • Changed to use <Routes> instead <Switch>
  • Changed to use relative route paths and trailing /*s for wildcard routes (routes are now exact by default)
  • Updated to use react-router v6
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install [email protected]
npm install @grafana/[email protected]
# or 
yarn add [email protected]
yarn add @grafana/[email protected]

@leventebalogh leventebalogh added create-plugin related to the create-plugin tool minor Increment the minor version when merged release Create a release when this pr is merged labels Dec 19, 2024
@leventebalogh leventebalogh self-assigned this Dec 19, 2024
Copy link
Contributor

github-actions bot commented Dec 19, 2024

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new minor release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

@leventebalogh leventebalogh force-pushed the leventebalogh/scenes-app/update-router branch from 33b15b8 to 1de8a5a Compare February 7, 2025 13:32
@leventebalogh leventebalogh moved this from 🧑‍💻 In development to 📅 Planned in Plugins Platform / Grafana Community Mar 19, 2025
@tolzhabayev tolzhabayev moved this from 📅 Planned to 🧑‍💻 In development in Plugins Platform / Grafana Community Apr 9, 2025
Copy link
Contributor

github-actions bot commented May 9, 2025

This pull request has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale label May 9, 2025
@jackw jackw added no stalebot and removed stale labels May 12, 2025
@jackw
Copy link
Collaborator

jackw commented Jun 13, 2025

@academo we can close this right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-plugin related to the create-plugin tool minor Increment the minor version when merged no stalebot release Create a release when this pr is merged
Projects
Status: 🧑‍💻 In development
Development

Successfully merging this pull request may close these issues.

2 participants