Skip to content

Conversation

@JerryWu1234
Copy link
Contributor

@JerryWu1234 JerryWu1234 commented Mar 15, 2025

What is it?

fixes: #7086

follow version 2 to fix this ts error

Description

Checklist

  • My code follows the developer guidelines of this project
  • I performed a self-review of my own code
  • I added a changeset with pnpm change
  • I made corresponding changes to the Qwik docs
  • I added new tests to cover the fix / functionality

@JerryWu1234 JerryWu1234 requested review from a team as code owners March 15, 2025 03:34
@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2025

🦋 Changeset detected

Latest commit: 0e22493

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

This PR includes changesets to release 4 packages
Name Type
@builder.io/qwik-city Patch
@builder.io/qwik Patch
eslint-plugin-qwik Patch
create-qwik Patch

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

@JerryWu1234 JerryWu1234 marked this pull request as draft March 15, 2025 03:42
@JerryWu1234 JerryWu1234 marked this pull request as ready for review March 15, 2025 06:44
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 15, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@builder.io/qwik@7426
npm i https://pkg.pr.new/@builder.io/qwik-city@7426
npm i https://pkg.pr.new/eslint-plugin-qwik@7426
npm i https://pkg.pr.new/create-qwik@7426

commit: 2e6a031

@github-actions
Copy link
Contributor

github-actions bot commented Mar 15, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

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

@JerryWu1234 JerryWu1234 self-assigned this Mar 15, 2025
@JerryWu1234 JerryWu1234 moved this from Backlog to Waiting For Review in Qwik Development Mar 19, 2025
@JerryWu1234
Copy link
Contributor Author

@maiieul please help me to review

This commit refactors the preloader and bundle graph handling to improve performance and maintainability. Key changes include:

- Removed `qwikloader-prefetch.ts` and `qwikloader-entry.ts` as they are no longer needed.
- Updated the preloader configuration to use more descriptive variable names and optimized preload probabilities.
- Changed the bundle graph output from `.js` to `.json` for better clarity and compression.
- Added a new test for the preloader script to ensure its integrity and size.
- Updated API Extractor configurations across multiple packages to use consistent naming and newline settings.

These changes aim to enhance the efficiency of Qwik's preloading mechanism and ensure better maintainability of the codebase.
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.

Can you explain more why this is needed? A Resource is supposed to be a placeholder for a Promise, so I don't understand why it should also return a Promise

@JerryWu1234
Copy link
Contributor Author

@wmertens @Varixo DO we still need this PR, I'm going to close it if it doesn't need

@wmertens
Copy link
Member

wmertens commented Sep 9, 2025

@JerryWu1234 can you merge main and run pnpm api.update? We can merge this then.

@gioboa
Copy link
Member

gioboa commented Sep 9, 2025

@JerryWu1234 can you merge main and run pnpm api.update? We can merge this then.

Done ✅

Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

Thanks @JerryWu1234 for your incredible help and passion ❤️

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 e33abbb into QwikDev:main Sep 9, 2025
18 checks passed
@github-project-automation github-project-automation bot moved this from Waiting For Review to Done in Qwik Development Sep 9, 2025
@github-actions github-actions bot mentioned this pull request Sep 24, 2025
@github-actions github-actions bot mentioned this pull request Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[🐞] onResolved cannot return a Promise

4 participants