Skip to content

Would the sveltekit form action still work? #49

Answered by icflorescu
leovoon asked this question in Q&A
Discussion options

You must be logged in to vote

This has nothing to do with trpc-sveltekit.
Please consult the SvelteKit docs page: https://kit.svelte.dev/docs/form-actions
Just a couple of hints, though:
If you're using POST, email can't be a search param; you'll probably have to extract it from request forma data.
Also, form actions have nothing to do with +page.ts. They're handled in +page.server.ts.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@leovoon
Comment options

@icflorescu
Comment options

Answer selected by icflorescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants