-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: RequestEventAction has missed a type resolveValue
#7378
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 88f268c The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
the problem is that the resolveValue is not actually working even though it's documented. So this PR needs to implement it too. |
@wmertens |
@JerryWu1234 best to search the code for |
thanks for your tips, it's useful |
There was a problem hiding this 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 help 🎉
I added few comments
} | ||
isAction = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to reset it to false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to prevent it from running multiple times.
packages/qwik-city/src/middleware/request-handler/resolve-request-handlers.ts
Outdated
Show resolved
Hide resolved
packages/qwik-city/src/middleware/request-handler/request-event.ts
Outdated
Show resolved
Hide resolved
packages/qwik-city/src/middleware/request-handler/request-event.ts
Outdated
Show resolved
Hide resolved
packages/qwik-city/src/middleware/request-handler/resolve-request-handlers.ts
Outdated
Show resolved
Hide resolved
…lue` refactor(qwik-city): simplify loader function in actionsMiddleware perf(qwik-city): freeze request event object to prevent mutations feat(qwik): add platform-specific bindings for darwin-arm64, win32-x64, and linux-x64
The '@builder.io/qwik' package was mistakenly included in the patch list. This commit removes it to ensure the changeset accurately reflects the intended scope of the update.
What is it?
fixes #7377
if routeAction$ wants to use
resolveValue
function,routeLoader$ has be loaded first,so I move the
routerLoader
logic beforemethod === 'POST'
, However, in some situations, it has to remain in its original position.Description
Checklist
pnpm change