Skip to content

Conversation

@Varixo
Copy link
Member

@Varixo Varixo commented Nov 15, 2025

Correctly serialize null or undefined value.
Remove only undefined values during serialization.
Make default undefined value for effects and back refs instead of null

@Varixo Varixo self-assigned this Nov 15, 2025
@Varixo Varixo requested a review from a team as a code owner November 15, 2025 20:15
@changeset-bot
Copy link

changeset-bot bot commented Nov 15, 2025

🦋 Changeset detected

Latest commit: 1fc309c

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 Waiting For Review in Qwik Development Nov 15, 2025
@Varixo Varixo linked an issue Nov 15, 2025 that may be closed by this pull request
@Varixo Varixo force-pushed the v2-undefined-default-effects-value branch from 9b8904d to 6d70fd3 Compare November 15, 2025 20:19
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 15, 2025

Open in StackBlitz

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

commit: 1fc309c

@github-actions
Copy link
Contributor

github-actions bot commented Nov 15, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

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

@Varixo Varixo force-pushed the v2-undefined-default-effects-value branch from 6d70fd3 to eb69e4b Compare November 16, 2025 10:01
} else {
output(TypeIds.Signal, [value.$untrackedValue$, ...(value.$effects$ || [])]);
const v = value.$untrackedValue$;
const keepUndefined = v === undefined;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is needed, [][0] is undefined

Copy link
Member Author

Choose a reason for hiding this comment

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

it is needed, but you are right, its bugged. It should keep only value if effects are undefined. I pushed some changes

Copy link
Member

Choose a reason for hiding this comment

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

I don't get it, if you don't keep undefined, it will be an empty array and it won't create the effects set?

Copy link
Member Author

Choose a reason for hiding this comment

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

its for value, not effects

Copy link
Member

Choose a reason for hiding this comment

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

oh right, missing value means invalid, not undefined

@Varixo Varixo force-pushed the v2-undefined-default-effects-value branch from eb69e4b to 1fc309c Compare November 16, 2025 12:38
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.

LGTM

@wmertens wmertens merged commit 2e132fc into build/v2 Nov 17, 2025
20 checks passed
@wmertens wmertens deleted the v2-undefined-default-effects-value branch November 17, 2025 18:04
@github-project-automation github-project-automation bot moved this from Waiting For Review to Done in Qwik Development Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[🐞] v2: style isn't working on SSR

3 participants