Skip to content

update untrack.mdx example#1465

Open
MattLysinger wants to merge 1 commit intosolidjs:mainfrom
MattLysinger:patch-1
Open

update untrack.mdx example#1465
MattLysinger wants to merge 1 commit intosolidjs:mainfrom
MattLysinger:patch-1

Conversation

@MattLysinger
Copy link
Copy Markdown

  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

The current example shows "const value = untrack(() => props.value)" which 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. The example i propose follows the recommended pattern of accessing the props directly.

Related issues & labels

  • Suggested label(s) (optional): documentation

"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.
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 8, 2026

Deploy Preview for solid-docs failed. Why did it fail? →

Name Link
🔨 Latest commit b05ca29
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/69d69cf611a8730009311d05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant