Skip to content

fix(core): undeprecate async useComputed - #8888

Open
wmertens wants to merge 1 commit into
v1from
undeprecate
Open

fix(core): undeprecate async useComputed#8888
wmertens wants to merge 1 commit into
v1from
undeprecate

Conversation

@wmertens

Copy link
Copy Markdown
Member

it's supported in v2 now

Copilot AI review requested due to automatic review settings July 31, 2026 10:42
@wmertens
wmertens requested review from a team as code owners July 31, 2026 10:42
@wmertens
wmertens enabled auto-merge July 31, 2026 10:42
@changeset-bot

changeset-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6355446

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@builder.io/qwik Patch
@builder.io/qwik-city Patch
eslint-plugin-qwik Patch
create-qwik Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Not ready to approve

The docs MDX introduces a broken TSX snippet (\_ identifier) and an extra trailing fenced code block delimiter that leaves an unclosed code fence at end-of-file.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR updates Qwik core and documentation to reflect that useComputed$ supports async functions again (supported in v2), removing the runtime deprecation warning and updating public-facing guidance.

Changes:

  • Remove the async-useComputed$ deprecation warning path in runComputed() (core runtime).
  • Update useComputed$ documentation (JSDoc + docs site content) to describe async behavior and tracking limitations.
  • Add a changeset and update generated API docs (index.mdx / api.json).
File summaries
File Description
packages/qwik/src/core/use/use-task.ts Removes async deprecation warning in computed execution and updates JSDoc wording.
packages/docs/src/routes/docs/(qwik)/core/state/index.mdx Updates docs narrative about async useComputed$, but also modifies multiple embedded snippets.
packages/docs/src/routes/api/qwik/index.mdx Updates generated API reference text for useComputed$.
packages/docs/src/routes/api/qwik/api.json Updates generated API JSON content for useComputed$.
.changeset/async-computed-supported.md Adds a patch changeset announcing async useComputed$ is no longer deprecated.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 3
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment on lines 115 to +118
<input
value={state.name}
onInput$={(_, el) => (state.name = el.value)}
/>
</>
);
onInput$={(\_, el) => (state.name = el.value)}
/>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes pls fix

Comment on lines 633 to +634
</CodeSandbox>
```
Comment on lines +340 to +341
* The function must not have any side effects. It may return a promise, but only signal reads
* before the first await are tracked. Read reactive inputs before awaiting.
@pkg-pr-new

pkg-pr-new Bot commented Jul 31, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@builder.io/qwik@8888
npm i https://pkg.pr.new/@builder.io/qwik-city@8888
npm i https://pkg.pr.new/eslint-plugin-qwik@8888
npm i https://pkg.pr.new/create-qwik@8888

commit: 6355446

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 6355446

Comment on lines 115 to +118
<input
value={state.name}
onInput$={(_, el) => (state.name = el.value)}
/>
</>
);
onInput$={(\_, el) => (state.name = el.value)}
/>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes pls fix

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

Labels

None yet

Projects

Status: Waiting For Review

Development

Successfully merging this pull request may close these issues.

3 participants