Skip to content

fix: don't wrap static objects with signal #7637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2025

Conversation

Varixo
Copy link
Member

@Varixo Varixo commented May 24, 2025

Static/const objects should not be wrapped with WrappedSignal, they are static and cannot change

@Varixo Varixo self-assigned this May 24, 2025
@Varixo Varixo requested a review from a team as a code owner May 24, 2025 07:24
Copy link

changeset-bot bot commented May 24, 2025

🦋 Changeset detected

Latest commit: 6dbd58f

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 May 24, 2025
@Varixo Varixo moved this from Waiting For Review to In progress in Qwik Development May 24, 2025
Copy link

pkg-pr-new bot commented May 24, 2025

Open in StackBlitz

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

commit: 6dbd58f

Copy link
Contributor

github-actions bot commented May 24, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

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

@Varixo Varixo linked an issue May 24, 2025 that may be closed by this pull request
@Varixo Varixo force-pushed the v2-dont-wrap-static-objects branch from 96f3dd3 to 6dbd58f Compare May 24, 2025 08:28
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.

State memory sellers hate this one simple trick! 👑

@wmertens wmertens enabled auto-merge May 24, 2025 08:37
@wmertens wmertens merged commit c647c56 into build/v2 May 24, 2025
17 checks passed
@wmertens wmertens deleted the v2-dont-wrap-static-objects branch May 24, 2025 08:39
@github-project-automation github-project-automation bot moved this from In progress to Done in Qwik Development May 24, 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] .map is too eager in creating qrls
2 participants