Skip to content

Conversation

@Varixo
Copy link
Member

@Varixo Varixo commented Oct 31, 2025

Add new option for useTask$ blockRender. It helps managing animations and view transitions

@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2025

🦋 Changeset detected

Latest commit: f153154

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 Oct 31, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 31, 2025

Open in StackBlitz

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

commit: f153154

@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

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

@wmertens
Copy link
Member

wmertens commented Nov 1, 2025

now that I read it again, blockRender sounds like rendering blocks, not blocking render :)

Maybe just blocking?

Copy link
Member

@wmertens wmertens left a comment

Choose a reason for hiding this comment

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

three thumbs up, LGTM except maybe the option name

@gnemanja
Copy link
Contributor

gnemanja commented Nov 1, 2025

Maybe it would be nice to include a description which says that useTask will always block rendering when executed on server. This option is only for browser

@Varixo Varixo changed the title feat: introduce blockRender option for useTask$ feat: introduce deferUpdates option for useTask$ Nov 2, 2025
@Varixo
Copy link
Member Author

Varixo commented Nov 3, 2025

now that I read it again, blockRender sounds like rendering blocks, not blocking render :)

Maybe just blocking?

changed to deferUpdates after talking to Jack

@Varixo
Copy link
Member Author

Varixo commented Nov 3, 2025

We need to talk about this change if it should be default to match v1 behavior.
Imo the v1 behavior is not intuitive and we could change it.

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

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

4 participants