You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPMENT.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,17 @@ Changesets will do most of the heavy lifting for our releases. When changes are
22
22
-`git commit -a -m "Enter prerelease mode"`
23
23
-`git push --set-upstream origin release-next`
24
24
- Wait for the release workflow to finish - the Changesets action will open a PR that will increment all versions and generate the changelogs
25
-
- Check out the PR branch created by changesets locally
26
-
-_Optional:_ Review the updated `CHANGELOG.md` files in the PR locally and make any adjustments necessary, then merge the PR into the `release-next` branch.
Copy file name to clipboardExpand all lines: decisions/0011-routes-ts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,4 +92,4 @@ As of the creation of this decision document, the only available build context i
92
92
93
93
### Remix's `routes` option has an adapter for easy migration
94
94
95
-
Some Remix consumers used the `routes` option to define config-based routes or use community file system routing conventions. To ease the migration, the `@react-router/remix-config-routes-adapter` package provides a `remixConfigRoutes` function that accepts Remix's `routes` config value as an argument.
95
+
Some Remix consumers used the `routes` option to define config-based routes or use community file system routing conventions. To ease the migration, the `@react-router/remix-routes-option-adapter` package provides a `remixRoutesOptionAdapter` function that accepts Remix's `routes` config value as an argument.
Copy file name to clipboardExpand all lines: docs/start/testing.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ order: 9
5
5
6
6
# Testing
7
7
8
-
When components use things like `useLoaderData`, `<Link>`, etc, they are required to be rendered in context of a React Router app. The `createStub` function creates that context to test components in isolation.
8
+
When components use things like `useLoaderData`, `<Link>`, etc, they are required to be rendered in context of a React Router app. The `createRoutesStub` function creates that context to test components in isolation.
9
9
10
10
Consider a login form component that relies on `useActionData`
11
11
@@ -32,19 +32,20 @@ export function LoginForm() {
32
32
}
33
33
```
34
34
35
-
We can test this component with `createStub`. It takes an array of objects that resemble route modules with loaders, actions, and components.
35
+
We can test this component with `createRoutesStub`. It takes an array of objects that resemble route modules with loaders, actions, and components.
0 commit comments