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

[pull] main from remix-run:main #3

Open
wants to merge 1,296 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1296 commits
Select commit Hold shift + click to select a range
f1f8ed0
Update release notes
brophdawg11 Nov 21, 2023
1621319
Update Release Notes TOC
brophdawg11 Nov 21, 2023
77862f9
Exit prerelease mode
brophdawg11 Nov 22, 2023
3cc38ea
chore: Update version for release (#11050)
github-actions[bot] Nov 22, 2023
5f152fc
Merge branch 'release-next'
brophdawg11 Nov 22, 2023
30917ae
Merge branch 'release-next' into dev
brophdawg11 Nov 22, 2023
26471d4
Add usenavigation formAction, formMethod, formEncType doc (#11051)
thecode00 Nov 24, 2023
7a2e9f6
chore: format
remix-run-bot Nov 24, 2023
9cfd99d
Revert useResolvedPath fix in splat routes (#11078)
brophdawg11 Dec 1, 2023
f81d989
Merge branch 'main' into release-next
brophdawg11 Dec 1, 2023
6e17b68
Enter prerelease mode
brophdawg11 Dec 1, 2023
67e75d5
chore: Update version for release (pre) (#11079)
github-actions[bot] Dec 1, 2023
de0905f
Prep release notes
brophdawg11 Dec 1, 2023
a18ca5a
Exit prerelease mode
brophdawg11 Dec 1, 2023
8b1ee67
chore: Update version for release (#11080)
github-actions[bot] Dec 1, 2023
426b055
Merge branch 'release-next'
brophdawg11 Dec 1, 2023
7a5c0a7
Merge branch 'release-next' into dev
brophdawg11 Dec 1, 2023
dc7833c
Catch errors when trying to unwrap responses (#11061)
brophdawg11 Dec 4, 2023
e6814d5
Properly handle falsy error values in ErrorBoundary's (#11071)
brophdawg11 Dec 4, 2023
211c1ff
Bump bundle
brophdawg11 Dec 4, 2023
cb53f41
Fix issue when rendering Link/NavLink outside of matched routes (#11062)
brophdawg11 Dec 4, 2023
0d2a38c
Support partial hydration for Remix clientLoader/clientAction (#11033)
brophdawg11 Dec 4, 2023
d04c541
Fix tests from conflicting PRs
brophdawg11 Dec 4, 2023
839df23
Bump bundle
brophdawg11 Dec 4, 2023
149ad65
Add future.v7_relativeSplatPath flag (#11087)
brophdawg11 Dec 5, 2023
120de8c
Merge branch 'main' into release-next
brophdawg11 Dec 5, 2023
1752d84
Enter prerelease mode
brophdawg11 Dec 5, 2023
ddc2b94
chore: Update version for release (pre) (#11089)
github-actions[bot] Dec 5, 2023
ee5fcd5
Generate release notes
brophdawg11 Dec 5, 2023
1c6f3b3
fix typos
brophdawg11 Dec 5, 2023
558d793
Fix plumbing of future prop
brophdawg11 Dec 5, 2023
56b2944
chore: Update version for release (pre) (#11090)
github-actions[bot] Dec 5, 2023
f9d7ed6
Fix server future plumbing
brophdawg11 Dec 5, 2023
373b30c
chore: Update version for release (pre) (#11091)
github-actions[bot] Dec 5, 2023
1447eb0
Update release notes
brophdawg11 Dec 5, 2023
ed40ee9
Update release notes comparison link
brophdawg11 Dec 5, 2023
c47464c
Clarify relative="path" docs
brophdawg11 Dec 6, 2023
fe3c071
Slight refactor to partial hydration to leverage state.initialized pr…
brophdawg11 Dec 6, 2023
ea0ffee
chore: Update version for release (pre) (#11095)
github-actions[bot] Dec 6, 2023
a76ee41
Dedup relative path logic in resolveTo (#11097)
brophdawg11 Dec 7, 2023
54ec39e
Allow persisted fetchers unmounted during submit to revalidate (#11102)
brophdawg11 Dec 7, 2023
ffd4373
Exit prerelease mode
brophdawg11 Dec 13, 2023
69ba50e
chore: Update version for release (#11114)
github-actions[bot] Dec 13, 2023
5567158
Merge branch 'release-next'
brophdawg11 Dec 13, 2023
c292bdb
Merge branch 'release-next' into dev
brophdawg11 Dec 13, 2023
19e6398
Add v7_relativeSplatPath to createBrowserRouter docs
brophdawg11 Dec 13, 2023
87d5d61
Fix unit test (#11115)
brophdawg11 Dec 13, 2023
2ea19fa
docs: Add minor grammatical changes to `errorElement` docs for better…
Kakamotobi Dec 15, 2023
a4e91e0
chore: sort contributors list
remix-cla-bot[bot] Dec 15, 2023
abb23de
doc edited for unstable_useViewTransitionState (#11117)
eiffelwong1 Dec 15, 2023
f8c54a8
chore: format
remix-run-bot Dec 15, 2023
d9b36f6
Update useResolvedPath docs
brophdawg11 Dec 15, 2023
cc4436c
Update changelogs for useResolvedSplat example
brophdawg11 Dec 15, 2023
0f04d11
Fix issues with partial hydration combined with route.lazy (#11121)
brophdawg11 Dec 18, 2023
8bb3ffd
Fix typo in changeset
brophdawg11 Dec 18, 2023
ba99ec5
Merge branch 'main' into release-next
brophdawg11 Dec 21, 2023
a7ec1c5
Enter prerelease mode
brophdawg11 Dec 21, 2023
e5d73cf
chore: Update version for release (pre) (#11131)
github-actions[bot] Dec 21, 2023
c55f841
Update release notes
brophdawg11 Dec 21, 2023
14df5db
Exit prerelease mode
brophdawg11 Dec 21, 2023
08cda17
chore: Update version for release (#11132)
github-actions[bot] Dec 21, 2023
703892c
Merge branch 'release-next'
brophdawg11 Dec 21, 2023
e7ec540
Merge branch 'release-next' into dev
brophdawg11 Dec 21, 2023
e4f663c
Update create-routes-from-elements.md (#11143)
bobziroll Dec 27, 2023
06343d4
Sort contributors.yml as part of the format workflow (#11154)
brophdawg11 Jan 2, 2024
c951e7c
Sort contributors.yml as part of the format workflow
brophdawg11 Jan 2, 2024
4953b55
documentation fix: "Server-Side Rendering" link in loader.md redirect…
KaranRandhir Jan 4, 2024
ef0d0d7
chore: sort contributors list
remix-cla-bot[bot] Jan 4, 2024
d103537
Pick up dashes in dynamic parameter names (#11160)
brophdawg11 Jan 9, 2024
e0d106b
Leverage useId for internal fetcher keys when available (#11166)
brophdawg11 Jan 9, 2024
0ef1896
Do not attempt to deserialize empty json responses (#11164)
brophdawg11 Jan 9, 2024
03ce037
Merge branch 'main' into release-next
brophdawg11 Jan 9, 2024
5cd3a45
Enter prerelease mode
brophdawg11 Jan 9, 2024
c2c0826
chore: Update version for release (pre) (#11178)
github-actions[bot] Jan 9, 2024
038ad94
Add dates to prior releases in changelog
brophdawg11 Jan 9, 2024
cfce7e6
Unbold date
brophdawg11 Jan 9, 2024
f978021
Prep release notes
brophdawg11 Jan 9, 2024
c8742d4
Exit prerelease mode
brophdawg11 Jan 11, 2024
4e528c0
chore: Update version for release (#11182)
github-actions[bot] Jan 11, 2024
6be8e6c
Merge branch 'release-next'
brophdawg11 Jan 11, 2024
274027e
Fix date in changelog
brophdawg11 Jan 11, 2024
c418410
Merge branch 'release-next' into dev
brophdawg11 Jan 11, 2024
6837a11
Fix date in changelog
brophdawg11 Jan 11, 2024
04d653b
Copy remix script to remove prereleases from changelogs (#11183)
brophdawg11 Jan 12, 2024
552662a
Remove leftover `unstable_` prefix from `Blocker`/`BlockerFunction` t…
brophdawg11 Jan 12, 2024
b541b8d
Fix NavLink isPending with a basename (#11195)
brophdawg11 Jan 16, 2024
858f6f1
Merge branch 'main' into release-next
brophdawg11 Jan 16, 2024
84e5fb9
Enter prerelease mode
brophdawg11 Jan 16, 2024
b4bf927
chore: Update version for release (pre) (#11196)
github-actions[bot] Jan 16, 2024
8fc701a
Prep release notes
brophdawg11 Jan 16, 2024
1551285
Change release date
brophdawg11 Jan 18, 2024
82c4843
Exit prerelease mode
brophdawg11 Jan 18, 2024
44b391a
chore: Update version for release (#11203)
github-actions[bot] Jan 18, 2024
ee02f5d
Merge branch 'release-next'
brophdawg11 Jan 18, 2024
cc40394
Merge branch 'release-next' into dev
brophdawg11 Jan 18, 2024
fb0f1f9
fix up some PR links in the changelog
brophdawg11 Jan 18, 2024
462bb71
Add SSR notes on renderToString versus renderToPipeableStream
brophdawg11 Jan 23, 2024
b083600
Add note about useBlocker/usePrompt to v5 migration guide
brophdawg11 Jan 24, 2024
fdadc70
Update RR version for useBlocker example
timdorr Jan 24, 2024
c9f8a7b
Add future flag to throw request.signal.reason for aborted requests (…
brophdawg11 Jan 26, 2024
add6f8a
Respect the ErrorResponse status code if passed to getStaticContextFo…
brophdawg11 Jan 26, 2024
f5f7511
Add a window var for CWV Tech Report to look for (#11222)
brophdawg11 Jan 29, 2024
cecc9ce
Merge branch 'main' into release-next
brophdawg11 Jan 31, 2024
8e931b4
Enter prerelease mode
brophdawg11 Jan 31, 2024
109fb7d
chore: Update version for release (pre) (#11238)
github-actions[bot] Jan 31, 2024
a7baca2
Update link to CWV report
brookslybrand Jan 31, 2024
cd2daef
Update changelog
brophdawg11 Feb 1, 2024
10f9042
Exit prerelease mode
brophdawg11 Feb 1, 2024
3a66719
chore: Update version for release (#11242)
github-actions[bot] Feb 1, 2024
bb107c9
Merge branch 'release-next'
brophdawg11 Feb 1, 2024
7c0bfde
Merge branch 'release-next' into dev
brophdawg11 Feb 1, 2024
241f2d4
Fix issues with pre-encoded param names not being properly decoded (#…
brophdawg11 Feb 6, 2024
362115a
Update CI to node 20 and fix issue with build on experimental release…
brophdawg11 Feb 6, 2024
9f36087
Fix typo in loader.md (#11256)
jb-1980 Feb 6, 2024
135e8aa
Add note on relative:path starting point
brophdawg11 Feb 12, 2024
9aed7d0
docs: listen for close event on response, not request (#11249)
faergeek Feb 13, 2024
5d475a2
fix typo in faq.md (#11272)
adriananin Feb 16, 2024
c164837
chore: sort contributors list
remix-cla-bot[bot] Feb 16, 2024
b7e9836
Merge branch 'main' into release-next
brophdawg11 Feb 16, 2024
24685c9
Enter prerelease mode
brophdawg11 Feb 16, 2024
25d16db
chore: Update version for release (pre) (#11280)
github-actions[bot] Feb 16, 2024
671a966
Exit prerelease mode
brophdawg11 Feb 16, 2024
5f0cf32
chore: Update version for release (#11283)
github-actions[bot] Feb 16, 2024
56fbdb2
Update context provider link to point to React's new documentation si…
thepedroferrari Feb 20, 2024
13ac1b6
chore: sort contributors list
remix-cla-bot[bot] Feb 20, 2024
6b22f91
Preserve hydrated errors during partial hydration (#11305)
brophdawg11 Feb 26, 2024
74f8676
Merge branch 'release-next'
brophdawg11 Feb 27, 2024
95acd38
Merge branch 'release-next' into dev
brophdawg11 Feb 27, 2024
7f93b4b
Merge branch 'main' into release-next
brophdawg11 Feb 27, 2024
eec4ca9
Enter prerelease mode
brophdawg11 Feb 27, 2024
e1421be
chore: Update version for release (pre) (#11309)
github-actions[bot] Feb 27, 2024
e6b9e3b
Draft release notes
brophdawg11 Feb 27, 2024
cd2f69d
Update release date
brophdawg11 Feb 28, 2024
8f52cd2
Exit prerelease mode
brophdawg11 Feb 28, 2024
78c843b
chore: Update version for release (#11314)
github-actions[bot] Feb 28, 2024
428ab74
Merge branch 'release-next'
brophdawg11 Feb 28, 2024
8da1a23
Merge branch 'release-next' into dev
brophdawg11 Feb 28, 2024
98e7f7b
Add tests for SSR + route.lazy (#11323)
brophdawg11 Mar 4, 2024
05588d2
Don't run loaders below the boundary during partial hydration (#11324)
brophdawg11 Mar 5, 2024
48b29ba
Fix a partial hydration bug for routes with no loaders (#11325)
brophdawg11 Mar 5, 2024
4251b9a
Merge branch 'main' into release-next
brophdawg11 Mar 5, 2024
3cf2d1d
enter prerelease mode
brophdawg11 Mar 5, 2024
0c37f37
chore: Update version for release (pre) (#11327)
github-actions[bot] Mar 5, 2024
8e25911
Prep release notes
brophdawg11 Mar 5, 2024
1d1f3cb
Exit prerelease mode
brophdawg11 Mar 7, 2024
510c2c2
Update date on release notes
brophdawg11 Mar 7, 2024
67009e1
chore: Update version for release (#11329)
github-actions[bot] Mar 7, 2024
a04ae6b
Merge branch 'release-next'
brophdawg11 Mar 7, 2024
4ac3a2c
Merge branch 'release-next' into dev
brophdawg11 Mar 7, 2024
c7dd3d3
Data Strategy Configuration (#11098)
jacob-ebey Mar 11, 2024
9e7486b
docs: Fix use-navigate.md example output in section on using useLocat…
acusti Mar 13, 2024
12afb2e
Migrate to pnpm (#11358)
markdalgleish Mar 21, 2024
7bdef76
Add changelog doc
brookslybrand Mar 26, 2024
9eb52e9
Merge pull request #11376 from remix-run/brooks/changelog-doc
brookslybrand Mar 26, 2024
00ffa36
chore: format
remix-run-bot Mar 26, 2024
1058a37
Minor updates for single fetch headers behavior (#11377)
brophdawg11 Mar 26, 2024
f2d6ff5
Fix experimental releases to work with pnpm
brophdawg11 Mar 26, 2024
b267a1c
Merge branch 'main' into release-next
brophdawg11 Mar 27, 2024
6a2a3f9
Enter prerelease mode
brophdawg11 Mar 27, 2024
f2e924e
Add docs for unstable_dataStrategy and unstable_skipActionErrorRevali…
brophdawg11 Mar 27, 2024
88ec71a
chore: Update version for release (pre) (#11379)
github-actions[bot] Mar 27, 2024
4562023
Prep release notes
brophdawg11 Mar 27, 2024
4cb3ae2
Update changelog TOC
brophdawg11 Mar 27, 2024
fa82b2f
Updates
brophdawg11 Mar 27, 2024
903b47f
Remove flags (#11384)
brophdawg11 Mar 29, 2024
8a20f32
chore: Update version for release (pre) (#11387)
github-actions[bot] Mar 29, 2024
792caa4
Docs updates
brophdawg11 Mar 29, 2024
e404ba0
[Docs] Update link.md (#11414)
saul-atomrigs Apr 8, 2024
3bd1948
Update link.md relative example (#11432)
kapilepatel Apr 9, 2024
8aa203c
chore: sort contributors list
remix-cla-bot[bot] Apr 9, 2024
89049ce
[docs] update `edit` page in getting-started (#11463)
mtliendo Apr 17, 2024
06953cc
Update docs
brophdawg11 Apr 23, 2024
4137aea
Exit prerelease mode
brophdawg11 Apr 23, 2024
82a3a77
chore: Update version for release (#11486)
github-actions[bot] Apr 23, 2024
ec03b12
Merge branch 'release-next'
brophdawg11 Apr 23, 2024
56969f2
Merge branch 'release-next' into dev
brophdawg11 Apr 23, 2024
dc786c9
Fix v6 data API migration guideline docs (#11492)
mlewando Apr 24, 2024
d2c4a12
Fix typo in loader.md (#11493)
dgrijuela Apr 24, 2024
eca6c0c
Update experimental release to be a workflow_dispatch
brophdawg11 Apr 26, 2024
2c8d437
Update create-browser-router.md (#11508)
ChristophP Apr 29, 2024
94f7fb7
chore: sort contributors list
remix-cla-bot[bot] Apr 29, 2024
e0b1db4
fix: allow undefined to be resolved with `<Await>` (#11513)
jacob-ebey Apr 29, 2024
fdff9dd
Fix react-router-dom/server index.ts import from pnpm migration (#11514)
brophdawg11 Apr 30, 2024
b579661
Support unstable_dataStrategy on staticHandler.queryRoute (#11515)
brophdawg11 Apr 30, 2024
b000b21
Merge branch 'main' into release-next
brophdawg11 Apr 30, 2024
fc0e2e4
Enter prerelease mode
brophdawg11 Apr 30, 2024
9651465
chore: Update version for release (pre) (#11516)
github-actions[bot] Apr 30, 2024
127e693
Fix useLocation to receive 0 instead of null when state is set to 0 (…
jungwoo3490 May 8, 2024
cbb6ac3
chore: format
remix-run-bot May 8, 2024
1fb5a67
docs: fix typos (#11538)
omahs May 8, 2024
031478d
Add defensive window.document check when checking for startViewTransi…
brophdawg11 May 9, 2024
26bc8e2
chore: Update version for release (pre) (#11545)
github-actions[bot] May 9, 2024
86b50d7
Update release notes
brophdawg11 May 10, 2024
884452a
Exit prerelease mode
brophdawg11 May 10, 2024
aef5c4a
chore: Update version for release (#11551)
github-actions[bot] May 10, 2024
9da733d
Merge branch 'release-next'
brophdawg11 May 10, 2024
58dcfbb
Merge branch 'release-next' into dev
brophdawg11 May 10, 2024
bfe6113
Add nightly release workflow (#11550)
brophdawg11 May 10, 2024
ef67804
doc: Update create-browser-router.md example snippet (#11557)
tony-sn May 16, 2024
9d42655
chore: format
remix-run-bot May 16, 2024
ddda0f0
docs: Replace `.` typo with `;` (#11561)
robinvdvleuten May 17, 2024
7759e8e
chore: format
remix-run-bot May 17, 2024
2ea836d
fix doc: edit data api router usage list with useblocker (#11562)
Nurai1 May 17, 2024
3a27b1f
chore: format
remix-run-bot May 17, 2024
0999f6f
Clarify necessary dependencies in tutorial (#11593)
ctnelson1997 May 28, 2024
84fa36e
docs: Update `create-browser-router.md` (#11595)
gesposito May 28, 2024
d876562
chore: format
remix-run-bot May 28, 2024
1c2dedb
Update CHANGELOG.md
ryanflorence May 30, 2024
28afc74
docs: added useBlocker to the data apis (#11600)
Geist5000 May 30, 2024
2ea1ac3
chore: sort contributors list
remix-cla-bot[bot] May 30, 2024
b191557
Fixed a typo in concepts.md (#11601)
OlegDev1 May 30, 2024
dac9d78
chore: sort contributors list
remix-cla-bot[bot] May 30, 2024
1260952
Update CHANGELOG.md
ryanflorence May 30, 2024
c41d6ec
add future flags guide (#11603)
ryanflorence May 30, 2024
2841936
fix diff highlight (#11605)
Armanio Jun 2, 2024
f240263
chore: sort contributors list
remix-cla-bot[bot] Jun 2, 2024
44fa9aa
Small typos and fixes to the tutorial (#11598)
gaspard Jun 2, 2024
5d66dbd
chore: format
remix-run-bot Jun 2, 2024
be8a259
Fix fetcher.submit types (#11631)
brophdawg11 Jun 13, 2024
4e85e98
Support lazy route discovery (fog of war) (#11626)
brophdawg11 Jun 14, 2024
5920ded
Merge branch 'main' into release-next
brophdawg11 Jun 14, 2024
e8eebbf
Enter prerelease mode
brophdawg11 Jun 14, 2024
a2f718b
chore: Update version for release (pre) (#11661)
github-actions[bot] Jun 14, 2024
1e766e7
Fix date in release notes
brophdawg11 Jun 15, 2024
d7356d2
docs: add Route import in createRoutesFromElements docs (#11665)
iamnishanth Jun 17, 2024
aacc2b9
Fix type definition of `Route.children` (#11672)
doytch Jun 17, 2024
d73c1f6
feat: export type NavLinkRenderProps (#11553)
zeromask1337 Jun 18, 2024
a4aaeed
chore: format
remix-run-bot Jun 18, 2024
4050bef
Fix #11629 (#11633)
mspiess Jun 18, 2024
54f3138
chore: format
remix-run-bot Jun 18, 2024
3b6abbb
Exit prerelease mode
brophdawg11 Jun 24, 2024
a569d76
chore: Update version for release (#11717)
github-actions[bot] Jun 24, 2024
23aa844
Merge branch 'release-next'
brophdawg11 Jun 24, 2024
fa25691
Merge branch 'release-next' into dev
brophdawg11 Jun 24, 2024
a6b8162
chore: format
remix-run-bot Jun 24, 2024
32ff05a
chore: format
remix-run-bot Jun 24, 2024
77fca6e
Update release notes
brophdawg11 Jun 24, 2024
14f352f
fix typo (#11732)
AhmadMayo Jun 25, 2024
2f25789
chore: sort contributors list
remix-cla-bot[bot] Jun 25, 2024
dd607e0
Remove polyfil.io reference from warning message (#11741)
brophdawg11 Jun 27, 2024
eb30a88
Trigger a new router.routes identity during fog of war route patching…
brophdawg11 Jun 27, 2024
ff041d1
Fix initial matching in fog of war when a splat route matches (#11759)
brophdawg11 Jul 1, 2024
647c3f6
Merge branch 'main' into release-next
brophdawg11 Jul 1, 2024
ed68cbd
Enter prerelease mode
brophdawg11 Jul 1, 2024
453e5f3
chore: Update version for release (pre) (#11760)
github-actions[bot] Jul 1, 2024
f8883e1
Update patchRoutesOnMiss docs to reflect index matching
brophdawg11 Jul 2, 2024
edd9666
Exit prerelease mode
brophdawg11 Jul 3, 2024
0a87644
chore: Update version for release (#11767)
github-actions[bot] Jul 3, 2024
801d125
Merge branch 'release-next'
brophdawg11 Jul 3, 2024
abfa786
Minor updates to release procedures docs
brophdawg11 Jul 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update changelogs for useResolvedSplat example
  • Loading branch information
brophdawg11 committed Dec 15, 2023
commit cc4436c544300a09d9d95c5f733d3b00fd7d426f
16 changes: 13 additions & 3 deletions docs/hooks/use-resolved-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,30 @@ And then it gets worse if you define the splat route as a child:
<BrowserRouter>
<Routes>
<Route path="/dashboard">
<Route index path="*" element={<Dashboard />} />
<Route path="*" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
```

- Now, `useResolvedPath(".")` and `useResolvedPath("..")` resolve to the exact same path inside `<Dashboard />`
- If you were using a Data Router and defined an `action` on the splat route, you'd get a 405 error on `<Form>` submissions because they (by default) submit to `"."` which would resolve to the parent `/dashboard` route which doesn't have an `action`.
- If you were using a Data Router and defined an `action` on the splat route, you'd get a 405 error on `<Form>` submissions inside `<Dashboard>` because they (by default) submit to `"."` which would resolve to the parent `/dashboard` route which doesn't have an `action`.

### Behavior with the flag

When you enable the flag, this "bug" is fixed so that path resolution is consistent across all route types, and `useResolvedPath(".")` always resolves to the current pathname for the contextual route. This includes any dynamic param or splat param values.

If you want to navigate between "sibling" routes within a splat route, it is suggested you move your splat route to it's own child (`<Route index path="*" element={<Dashboard />} />`) and use `useResolvedPath("../teams")` and `useResolvedPath("../projects")` parent-relative paths to navigate to sibling `/dashboard` routes.
If you want to navigate between "sibling" routes within a splat route, it is suggested you move your splat route to it's own child and use `useResolvedPath("../teams")` and `useResolvedPath("../projects")` parent-relative paths to navigate to sibling `/dashboard` routes. Note that here we also use `index` so that the URL `/dashboard` also renders the `<Dashboard>` component.

```jsx
<BrowserRouter>
<Routes>
<Route path="/dashboard">
<Route index path="*" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
```

[navlink]: ../components/nav-link
[resolvepath]: ../utils/resolve-path
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom-v5-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<BrowserRouter>
<Routes>
<Route path="dashboard">
<Route path="*" element={<Dashboard />} />
<Route index path="*" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<BrowserRouter>
<Routes>
<Route path="dashboard">
<Route path="*" element={<Dashboard />} />
<Route index path="*" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<BrowserRouter>
<Routes>
<Route path="dashboard">
<Route path="*" element={<Dashboard />} />
<Route index path="*" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<BrowserRouter>
<Routes>
<Route path="dashboard">
<Route path="*" element={<Dashboard />} />
<Route index path="*" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion packages/router/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
<BrowserRouter>
<Routes>
<Route path="dashboard">
<Route path="*" element={<Dashboard />} />
<Route index path="*" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
Expand Down