Skip to content

feat(core): async auto tracking and async computed #8796

Draft
wmertens wants to merge 4 commits into
build/v2from
async-component
Draft

feat(core): async auto tracking and async computed #8796
wmertens wants to merge 4 commits into
build/v2from
async-component

Conversation

@wmertens

@wmertens wmertens commented Jul 3, 2026

Copy link
Copy Markdown
Member

Converts async functions into generator functions and adds a harness so that reactive tracking can happen across await.

This also means that there is no more reason for AsyncSignal, so the async machinery moves to ComputedSignal, we will drop Asyncsignal before V2.0

@changeset-bot

changeset-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bcea734

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

This PR includes changesets to release 6 packages
Name Type
@qwik.dev/core Minor
@qwik.dev/optimizer Minor
@qwik.dev/router Minor
eslint-plugin-qwik Minor
@qwik.dev/react Minor
create-qwik Minor

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@qwik.dev/core

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8796

@qwik.dev/router

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8796

eslint-plugin-qwik

npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8796

create-qwik

npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8796

@qwik.dev/optimizer

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/optimizer@8796

@qwik.dev/devtools

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/devtools@8796

commit: 6a575cc

@github-actions

github-actions Bot commented Jul 3, 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 6a575cc

wmertens and others added 2 commits July 3, 2026 23:46
useComputed$ accepts async functions and auto-tracks reads (including after
await). The async engine (jobs, pending, error, polling) moves into
ComputedSignalImpl, and AsyncSignalImpl becomes a thin subclass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Mark useAsync$, createAsync$, AsyncSignal and related types deprecated in
favor of useComputed$, and migrate all docs and examples to useComputed$
and `.pending`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants