Improve Clarity of the Build forms with API Recipe#5899
Improve Clarity of the Build forms with API Recipe#5899sarah11918 merged 11 commits intowithastro:mainfrom
Build forms with API Recipe#5899Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Build forms with API RecipeBuild forms with API Recipe
|
Oh, looks like I did some git wackiness, time to fix that... |
✅ 😅 |
sarah11918
left a comment
There was a problem hiding this comment.
This looks great! Nicely done! 🥳
See what you think about my suggestions below, and also, I couldn't suggest it here because it was too early in the page, but is the requirement here still output: 'server' or would 'hybrid' work, too? This recipe was probably written before hybrid existed, so just want to make sure! (And, if hybrid is OK, then we'd need a note that this page should include export const prerender = false)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
I will do a test to ensure this works! |
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Reflected in my last commit, |
| --- | ||
| import FeedbackForm from "../components/FeedbackForm" | ||
| --- |
There was a problem hiding this comment.
| --- | |
| import FeedbackForm from "../components/FeedbackForm" | |
| --- | |
| --- | |
| export const prerender = false; // if output: 'hybrid' | |
| import FeedbackForm from "../components/FeedbackForm" | |
| --- |
There was a problem hiding this comment.
@sarah11918 if preferred, I can add this to the code snippet at the end as well.
There was a problem hiding this comment.
Ah, I guess maybe the page itself doesn't need to be on-demand rendered as long as the API endpoint is. So, in fact, in hybrid mode, shouldn't feedback.ts need export const prerender = false;?
I'm just confused that setting something to prerender false shouldn't be necessary if hybrid is going to prerender by default, unlike server mode. If prerendered everything were OK, then why would server mode necessary in the first place?
There was a problem hiding this comment.
SO, if having the statement doesn't actually make a difference, let's not put it in and... see what happens! 😀
sarah11918
left a comment
There was a problem hiding this comment.
It's YOLO Christmas merge, @VoxelMC - my Christmas present to myself. If we need to PR a fix, we need to PR a fix!
Thank you again for being such a great, helpful, active contributor! 🥳
Merry Christmas!!! I'll fix it after the holidays - if it needs to be :) I'm always over the moon to contribute, so I'm glad to be of good service! Thank you for being such a hard-working maintainer, and for always giving great and kind feedback! |
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Description (required)
client:*directive to make their form submission work properly.Affected page: Modified
Related issues & labels (optional)