Skip to content

Commit 8a22ec1

Browse files
committed
docs update
1 parent 77649f1 commit 8a22ec1

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

docs/content/02-features/07-devtools.mdx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ export const clientAction = async ({ request, devTools }: ClientActionFunctionAr
7676
```ts
7777
import type { ExtendedContext } from "react-router-devtools/context";
7878

79-
declare module "react-router" {
80-
interface LoaderFunctionArgs {
81-
devTools: ExtendedContext
82-
}
83-
interface ActionFunctionArgs {
84-
devTools: ExtendedContext
85-
}
86-
}
79+
declare module "react-router" {
80+
interface LoaderFunctionArgs {
81+
devTools: ExtendedContext
82+
}
83+
interface ActionFunctionArgs {
84+
devTools: ExtendedContext
85+
}
86+
}
8787
```
8888
</InfoAlert>
8989

@@ -121,8 +121,7 @@ const loader = async ({ request, devTools }: LoaderFunctionArgs) => {
121121
const tracing = devTools?.tracing;
122122
// this will be traced in the network tab of react-router-devtools
123123
const user = tracing?.trace("my-event",() => getUser())
124-
125-
return { user }
124+
return { user }
126125
}
127126
```
128127

@@ -147,7 +146,7 @@ export const loader = async ({ request, devTools }: LoaderFunctionArgs) => {
147146
const startTime = tracing?.start("my-event")
148147
// do something here, eg DB call
149148

150-
// End the trace
149+
// End the trace
151150
tracing?.end("my-event", startTime!)
152151
return "data"
153152
}
@@ -177,8 +176,8 @@ export const loader = async ({ request, devTools }: LoaderFunctionArgs) => {
177176
// this will be traced in the network tab of react-router-devtools
178177
const startTime = tracing?.start("get user")
179178
// do something here, eg DB call
180-
const user = await getUser();
181-
// End the trace
179+
const user = await getUser();
180+
// End the trace
182181
tracing?.end("get user", startTime!, { user })
183182
return "data"
184183

docs/content/03-configuration/02-editor.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ const editor = {
6363

6464
### GoLand
6565

66-
To use WebStorm as your editor, you can use the following configuration:
66+
To use GoLand as your editor, you can use the following configuration:
6767

6868
```ts
6969
import { exec } from "node:child_process";
7070
import { cwd } from "node:process";
7171

7272
const editor = {
73-
name: "WebStorm",
73+
name: "GoLand",
7474
open(path, lineNumber) {
7575
if (!path) return;
7676
exec(

0 commit comments

Comments
 (0)