From b05ca2975ee377152a726a6217e6352d3e02ba69 Mon Sep 17 00:00:00 2001 From: Matt Lysinger <44628517+MattLysinger@users.noreply.github.com> Date: Wed, 8 Apr 2026 14:13:26 -0400 Subject: [PATCH] Update untrack.mdx example "const value = untrack(() => props.value)" is not a recommended pattern especially because the same could be achieved with "const value = props.value" which is also not a recommended pattern as shown in the following link -> https://docs.solidjs.com/concepts/components/props#destructuring-props. --- src/routes/reference/reactive-utilities/untrack.mdx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/routes/reference/reactive-utilities/untrack.mdx b/src/routes/reference/reactive-utilities/untrack.mdx index 2b38a9383..9caf6c3a0 100644 --- a/src/routes/reference/reactive-utilities/untrack.mdx +++ b/src/routes/reference/reactive-utilities/untrack.mdx @@ -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