Skip to content
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

eslint rule: unsupported-route-components #8774

Merged
merged 7 commits into from
Jun 29, 2023

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Jun 29, 2023

Our router file officially really only supports <Router>, <Route>, <Set> and <Private> elements.

Unofficially you've been able to use other things, like <div> and stuff in certain places. But with the new Suspense enabled router we're introducing that's not going to be possible anymore.

So this is an eslint rule that for now only warns on unsupported elements. But when the new router is released we can change that to show an error instead of a warning

image

@Tobbe Tobbe force-pushed the tobbe-eslint-router-elements branch from 706da9b to 56c3634 Compare June 29, 2023 16:42
@Tobbe Tobbe added the release:feature This PR introduces a new feature label Jun 29, 2023
@Tobbe Tobbe added this to the next-release milestone Jun 29, 2023
@Tobbe Tobbe force-pushed the tobbe-eslint-router-elements branch from 56c3634 to f952e2f Compare June 29, 2023 17:07
Copy link
Contributor

@jtoar jtoar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great locally for me

@jtoar jtoar modified the milestones: next-release, v5.4.0 Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants