-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(route-core, router-generator): resolve non-nested routes correctly in generator #5402
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
Open
nlynzaad
wants to merge
27
commits into
main
Choose a base branch
from
non-nested-paths
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,785
−1,263
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8bb9c50
revert router-core changes
nlynzaad 813e902
add experimental nonnested path changes to generator
nlynzaad bf9e788
update router-generator unit tests
nlynzaad ee640de
update basic-file-based-e2e
nlynzaad 329360d
cleanup
nlynzaad 1040bda
Merge branch 'main' into non-nested-paths
nlynzaad 2374d63
cleanup
nlynzaad 1ce638a
add tests for isValidNonNestedPaths
nlynzaad f0a12a6
resolve eslint issues
nlynzaad 4fddb0c
align naming to documentation
nlynzaad a1a2ba6
cleanup
nlynzaad ebb74d5
update solidjs basic-file-based tests
nlynzaad 7d8d8d5
update documentation
nlynzaad 1365c21
ci: apply automated fixes
autofix-ci[bot] 126c320
resolve test issues
nlynzaad cb9bee5
code rabbit suggestions
nlynzaad 638c0db
ci: apply automated fixes
autofix-ci[bot] 7f6e4b5
fix excess period in routeTree path
nlynzaad d561757
restore snapshot again
nlynzaad 4a51ede
ci: apply automated fixes
autofix-ci[bot] 258ddf2
resolve nitpick
nlynzaad f4a5975
Merge remote-tracking branch 'origin/non-nested-paths' into non-neste…
nlynzaad a70e617
resolve removeTrailingUnderscore issue
nlynzaad 16db1a5
fix routeTree path
nlynzaad bac68cd
final nitpicks
nlynzaad d692497
better test description
nlynzaad 43220cf
exclude snapshots from prettier
nlynzaad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
e2e/react-router/basic-file-based/src/routes/params-ps/non-nested/$foo_/$bar.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 11 additions & 4 deletions
15
e2e/react-router/basic-file-based/src/routes/posts_.$postId.edit.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
e2e/react-router/basic-file-based/tests/utils/useExperimentalNonNestedRoutes.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const useExperimentalNonNestedRoutes = | ||
typeof process !== 'undefined' | ||
? typeof process.env.MODE !== 'undefined' | ||
? process.env.MODE === 'nonnested' | ||
: process.env.VITE_MODE === 'nonnested' | ||
: import.meta.env.VITE_MODE === 'nonnested' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
e2e/solid-router/basic-file-based/src/routes/params-ps/non-nested/$foo_/$bar.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
e2e/solid-router/basic-file-based/src/routes/posts_.$postId.edit.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.