Skip to content

Conversation

Varixo
Copy link
Member

@Varixo Varixo commented Aug 28, 2025

Async resolve function has been added. It should be used to avoid reruning code before asynccomputed.value during resolving a promise

Copy link

changeset-bot bot commented Aug 28, 2025

🦋 Changeset detected

Latest commit: 73e92e9

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

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

@Varixo Varixo moved this from Backlog to In progress in Qwik Development Aug 28, 2025
@Varixo Varixo moved this from In progress to Waiting For Review in Qwik Development Aug 28, 2025
@Varixo Varixo linked an issue Aug 28, 2025 that may be closed by this pull request
@Varixo
Copy link
Member Author

Varixo commented Aug 28, 2025

This PR is to discuss as it adds new public API for async computed

@Varixo Varixo force-pushed the v2-async-read-value branch from d84bb2a to 73e92e9 Compare August 28, 2025 19:07
Copy link

pkg-pr-new bot commented Aug 28, 2025

Open in StackBlitz

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@7881
npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@7881
npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@7881
npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@7881

commit: 73e92e9

Copy link
Contributor

github-actions bot commented Aug 28, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

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

error: Error | null;
loading: boolean;
// (undocumented)
resolve(): Promise<void>;
Copy link
Member

Choose a reason for hiding this comment

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

Let's make it return the value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting For Review
Development

Successfully merging this pull request may close these issues.

[🐞] v2 solve problem with async computed used in tasks
2 participants