Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/routes/reference/reactive-utilities/untrack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ description: >-

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.

```tsx title="component.tsx"
```tsx title="component.tsx" {4}
import { untrack } from "solid-js";

export function Component(props) {
const value = untrack(() => props.value);

return <div>{value}</div>;
return <div>{untrack(() => props.value)}</div>;
}
```

Expand Down
Loading