Similar functionality to next/after #23
paulm17
started this conversation in
Proposals For Qwik
Replies: 1 comment
-
|
Since this is specific to serverless code, I think this should go in serverless adapters. For regular servers, you can easily start running a task and then respond, all you need to do is not await the Promise (but keep track of it somewhere) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is it about?
What's the motivation for this proposal?
Problems you are trying to solve:
I have a use case where I need to server static content, however I also want to offload a visitor count (in-house analytics) to a separate (golang) server to increment the count in a db.
What vercel is proposing with next/after is exactly what I am looking for.
Btw, my use case is adtech. Which is why with qwik, I want to keep things as static as possible for maximum speed.
Goals you are trying to achieve:
Any other context or information you want to share:
https://www.youtube.com/watch?v=ECnlX00YcPI
TLDW:
Proposed Solution / Feature
What do you propose?
Same functionality as proposed by vercel:
https://nextjs.org/blog/next-15-rc#executing-code-after-a-response-with-nextafter-experimental
Beta Was this translation helpful? Give feedback.
All reactions