Skip to content

Commit 2e22512

Browse files
ci: apply automated fixes
1 parent 2bf8b06 commit 2e22512

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/routes/reference/reactive-utilities/untrack.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ description: >-
1919
Ignores tracking any of the dependencies in the executing code block and returns the value. This helper is useful when a certain `prop` will never update and thus it is ok to use it outside of the tracking scope.
2020

2121
```tsx title="component.tsx"
22-
import { untrack } from "solid-js"
22+
import { untrack } from "solid-js";
2323

2424
export function Component(props) {
25-
const value = untrack(() => props.value)
25+
const value = untrack(() => props.value);
2626

27-
return <div>{value}</div>
27+
return <div>{value}</div>;
2828
}
2929
```
3030

@@ -34,22 +34,22 @@ It is not necessary to manually untrack values that are suppose to serve as a de
3434

3535
```tsx tab title="initialValue" {5}
3636
// component.tsx
37-
import { createSignal } from "solid-js"
37+
import { createSignal } from "solid-js";
3838

3939
export function Component(props) {
40-
const [name, setName] = createSignal(props.initialName)
40+
const [name, setName] = createSignal(props.initialName);
4141

42-
return <div>{name()}</div>
42+
return <div>{name()}</div>;
4343
}
4444
```
4545

4646
```tsx tab title="defaultValue" {5}
4747
// component.tsx
48-
import { createSignal } from "solid-js"
48+
import { createSignal } from "solid-js";
4949

5050
export function Component(props) {
51-
const [name, setName] = createSignal(props.defaultName)
51+
const [name, setName] = createSignal(props.defaultName);
5252

53-
return <div>{name()}</div>
53+
return <div>{name()}</div>;
5454
}
5555
```

0 commit comments

Comments
 (0)