Skip to content

Commit 4e989f8

Browse files
committed
Merge branch 'main' into release-next
2 parents 2bab251 + c9dc2d5 commit 4e989f8

File tree

8 files changed

+167
-9
lines changed

8 files changed

+167
-9
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ body:
88
value: |
99
Thank you for helping to improve React Router!
1010
11+
- **All** bugs must have a **minimal** reproduction
12+
- Minimal means that it is not just pointing to a deployed site or a branch in your existing application
13+
- The preferred method is StackBlitz via [https://reactrouter.com/new](https://reactrouter.com/new)
14+
- If Stackblitz is not an option, a Github repo based on a fresh `create-react-router` app is acceptable
15+
- Only in extraordinary circumstances will code snippets or maximal reproductions be accepted
16+
- Issue Review
17+
- Issues not meeting the above criteria will be closed and pointed to this document
18+
- Non-issues (feature requests, usage questions) will also be closed with a link to this document
19+
- The SC will triage issues regularly
20+
- Fixing Issues
21+
- The SC will mark good community issues with an `Accepting PRs` label
22+
- These issues will generally be ones that are likely to have a small surface area fix
23+
- However, anyone can work on any issue but there's no guarantee the PR will be accepted if the surface area is too large for expedient review by a core team member
24+
1125
## Option 1: Submit a PR with a failing test
1226
1327
🏆 The most helpful reproduction is to use our _bug report integration test_ template:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
# publish to npm.
5252
- name: 🚀 PR / Publish
5353
id: changesets
54-
uses: changesets/action@v1.4.10
54+
uses: changesets/action@v1.5.3
5555
with:
5656
version: pnpm run changeset:version
5757
commit: "chore: Update version for release"

.github/workflows/support.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
action:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: dessant/support-requests@v3
14+
- uses: dessant/support-requests@v4
1515
with:
1616
issue-comment: >
1717
:wave: @{issue-author}, we use the issue tracker exclusively for bug reports

GOVERNANCE.md

Lines changed: 141 additions & 0 deletions
Large diffs are not rendered by default.

contributors.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@
387387
- williamsdyyz
388388
- willsawyerrrr
389389
- willsmithte
390+
- Willvillegas
390391
- wkovacs64
392+
- woodywoodsta
391393
- xavier-lc
392394
- xcsnowcity
393395
- xdaxer
@@ -397,3 +399,4 @@
397399
- yuleicul
398400
- zeromask1337
399401
- zheng-chuang
402+
- zxTomw

docs/start/data/custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let router = createBrowserRouter([
3131
path: "shows/:showId",
3232
Component: Show,
3333
loader: ({ request, params }) =>
34-
fetch(`/api/show/${params.id}.json`, {
34+
fetch(`/api/show/${params.showId}.json`, {
3535
signal: request.signal,
3636
}),
3737
},

docs/start/framework/pending-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function Navbar() {
6363

6464
## Pending Form Submission
6565

66-
When a form is submitted, the UI should immediately respond to the user's actions with a pending state. This is easiest to do with a [fetcher][use_fetcher] form because it has it's own independent state (whereas normal forms cause a global navigation).
66+
When a form is submitted, the UI should immediately respond to the user's actions with a pending state. This is easiest to do with a [fetcher][use_fetcher] form because it has its own independent state (whereas normal forms cause a global navigation).
6767

6868
```tsx filename=app/project.tsx lines=[10-12]
6969
import { useFetcher } from "react-router";

docs/start/framework/route-module.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export default function Root() {
309309

310310
## `meta`
311311

312-
Route meta defines meta tags to be rendered in the `<head>` of the document.
312+
Route meta defines meta tags to be rendered in the `<Meta />` component, usually placed in the `<head>`.
313313

314314
<docs-warning>
315315

@@ -335,7 +335,7 @@ export default function MyRoute() {
335335

336336
</docs-warning>
337337

338-
```tsx
338+
```tsx filename=app/product.tsx
339339
export function meta() {
340340
return [
341341
{ title: "Very cool app" },
@@ -351,9 +351,7 @@ export function meta() {
351351
}
352352
```
353353

354-
All routes' meta will be aggregated and rendered through the `<Meta />` component, usually rendered in your app root:
355-
356-
```tsx
354+
```tsx filename=app/root.tsx
357355
import { Meta } from "react-router";
358356

359357
export default function Root() {
@@ -369,6 +367,8 @@ export default function Root() {
369367
}
370368
```
371369

370+
The meta of the last matching route is used, allowing you to override parent routes' meta. It's important to note that the entire meta descriptor array is replaced, not merged. This gives you the flexibility to build your own meta composition logic across pages at different levels.
371+
372372
**See also**
373373

374374
- [`meta` params][meta-params]

0 commit comments

Comments
 (0)