Skip to content

Commit 1d701fd

Browse files
committed
Merge branch 'main' into release-6.4.3
2 parents 7dc7f35 + 5f3cfb7 commit 1d701fd

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

contributors.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
- abdallah-nour
22
- abhi-kr-2100
3+
- adamdotjs
34
- Ajayff4
45
- alany411
56
- alexlbr
67
- AmRo045
78
- andreiduca
9+
- arnassavickas
810
- aroyan
911
- avipatel97
1012
- awreese
@@ -28,6 +30,7 @@
2830
- dauletbaev
2931
- david-crespo
3032
- dokeet
33+
- Drishtantr
3134
- edwin177
3235
- ekaansharora
3336
- elanis
@@ -73,6 +76,7 @@
7376
- loun4
7477
- lqze
7578
- lukerSpringTree
79+
- Manc
7680
- manzano78
7781
- marc2332
7882
- markivancho
@@ -107,6 +111,7 @@
107111
- SkayuX
108112
- souzasmatheus
109113
- srmagura
114+
- stasundr
110115
- tanayv
111116
- theostavrides
112117
- thisiskartik

docs/hooks/use-route-loader-data.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ const user = useRouteLoaderData("root");
4545
```
4646

4747
The only data available is the routes that are currently rendered. If you ask for data from a route that is not currently rendered, the hook will return `undefined`.
48+
49+
[pickingarouter]: ../routers/picking-a-router

docs/routers/picking-a-router.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ new: true
66

77
# Picking a Router
88

9-
While your app will only use a single router, several routers are available depending on the environment you're app is running in. This document should help you figure out which one to use.
9+
While your app will only use a single router, several routers are available depending on the environment your app is running in. This document should help you figure out which one to use.
1010

1111
## Using v6.4 Data APIs
1212

@@ -66,6 +66,15 @@ If you're not interested in the data APIs, you can continue to use [`<BrowserRou
6666

6767
Testing components that use React Router APIs is easiest with [`createMemoryRouter`][creatememoryrouter] or [`<MemoryRouter>`][memoryrouter] instead of the routers you use in your app that require DOM history APIs.
6868

69+
Some of the React Router APIs internally use `fetch`, which is only supported starting from Node.js v18. If your project uses v17 or lower, you should add a `fetch` polyfill manually. One way to do that, is to install [`whatwg-fetch`](https://www.npmjs.com/package/whatwg-fetch) and add it to your `jest.config.js` file like so:
70+
71+
```js
72+
module.exports = {
73+
setupFiles: ["whatwg-fetch"],
74+
// ...rest of the config
75+
};
76+
```
77+
6978
## React Native
7079

7180
You will use [`<NativeRouter>`][nativerouter] from React Native projects.

docs/start/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ order: 2
55

66
# Tutorial
77

8-
Welcome to the tutorial! We'll be building a small, but feature-rich app that let's you keep track of your contacts. We expect it to take between 30-60m if you're following along.
8+
Welcome to the tutorial! We'll be building a small, but feature-rich app that lets you keep track of your contacts. We expect it to take between 30-60m if you're following along.
99

1010
<img class="tutorial" src="/_docs/tutorial/15.webp" />
1111

@@ -519,7 +519,7 @@ const router = createBrowserRouter([
519519

520520
👉 **Access and render the data**
521521

522-
```jsx filename=src/routes/root.jsx lines=[4,11,19-39]
522+
```jsx filename=src/routes/root.jsx lines=[4,11,19-40]
523523
import {
524524
Outlet,
525525
Link,

0 commit comments

Comments
 (0)