Skip to content

Commit

Permalink
Merge branch 'main' into release-next
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Aug 28, 2023
2 parents c265a42 + 4b494b9 commit c06984d
Show file tree
Hide file tree
Showing 47 changed files with 343 additions and 322 deletions.
10 changes: 6 additions & 4 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- AchThomas
- adamdotjs
- adil62
- adrienharnay
- afzalsayed96
- Ajayff4
- akamfoad
Expand Down Expand Up @@ -132,6 +133,7 @@
- lopezac
- lordofthecactus
- LordThi
- louis-young
- loun4
- lounsbrough
- lpaube
Expand Down Expand Up @@ -178,7 +180,9 @@
- petersendidit
- promet99
- pyitphyoaung
- refusado
- rimian
- robbtraister
- RobHannay
- rtmann
- rubeonline
Expand All @@ -195,10 +199,12 @@
- shivamsinghchahar
- SimenB
- SkayuX
- smithki
- souzasmatheus
- srmagura
- stasundr
- stmtk1
- swalker326
- tanayv
- theostavrides
- thisiskartik
Expand Down Expand Up @@ -230,7 +236,3 @@
- yionr
- yuleicul
- zheng-chuang
- swalker326
- smithki
- louis-young
- robbtraister
2 changes: 1 addition & 1 deletion docs/hooks/use-navigate.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The `navigate` function has two signatures:

## `options.replace`

Specifying `replace: true` will cause the navigation will replace the current entry in the history stack instead of adding a new one.
Specifying `replace: true` will cause the navigation to replace the current entry in the history stack instead of adding a new one.

## `options.state`

Expand Down
6 changes: 5 additions & 1 deletion docs/route/lazy.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let routes = createRoutesFromElements(
);
```

Then in your lazy route modules, export the properties you want defined for the route:
Then in your lazy route modules, export the properties you want defined for the route (`loader`, `Component`, `ErrorBoundary`):

```jsx
export async function loader({ request }) {
Expand Down Expand Up @@ -59,6 +59,10 @@ export function ErrorBoundary() {
ErrorBoundary.displayName = "SampleErrorBoundary";
```

<docs-info>
Note that there's no `default` export in this lazy-loaded file. That's because `default` is not a valid key on a route object. These files generally should only export keys you would define on a route object, such as `loader`, `action`, `Component`, `ErrorBoundary`, etc. All exports will be spread directly on the route object unless you manually return an object from `lazy`.
</docs-info>

## Statically Defined Properties

Any properties defined statically on the route cannot be overwritten by the `lazy` function, and you'll receive a console warning if you attempt to overwrite them.
Expand Down
32 changes: 16 additions & 16 deletions examples/auth-router-provider/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/auth-router-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.1"
"react-router-dom": "^6.15.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.2",
Expand Down
26 changes: 13 additions & 13 deletions examples/auth/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.0"
"react-router-dom": "^6.15.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.2",
Expand Down
26 changes: 13 additions & 13 deletions examples/basic-data-router/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/basic-data-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "^6.10.0"
"react-router-dom": "^6.15.0"
},
"devDependencies": {
"@rollup/plugin-replace": "5.0.2",
Expand Down
26 changes: 13 additions & 13 deletions examples/basic/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.0"
"react-router-dom": "^6.15.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.2",
Expand Down
Loading

0 comments on commit c06984d

Please sign in to comment.