Skip to content
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

Feature: Server Form Actions #935

Closed
2 tasks
jdgamble555 opened this issue Mar 13, 2024 · 0 comments · Fixed by #1346
Closed
2 tasks

Feature: Server Form Actions #935

jdgamble555 opened this issue Mar 13, 2024 · 0 comments · Fixed by #1346
Labels
enhancement New feature or request

Comments

@jdgamble555
Copy link

Which scope/s are relevant/related to the feature request?

trpc

Information

Not sure if this would be a TRPC thing, or router thing.

It would be cool to have server actions. They are executed from a form action element. The goal is not just to submit to a form, but to all the form to have "progressive enhancements" so that they could still be submitted without JavaScript (if the internet is slow), and you get the same results as when you use JavaScript.

https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#behavior
https://kit.svelte.dev/docs/form-actions#progressive-enhancement
https://start.solidjs.com/core-concepts/actions
https://remix.run/docs/en/main/route/action
https://qwik.dev/docs/action/
https://form-actions-nuxt.pages.dev/get-started/introduction

Describe any alternatives/workarounds you're currently using

Just manually send a form to an endpoint without progressive enhancements. Just throwing this out there to have it on the backlog.

I would be willing to submit a PR to fix this issue

  • Yes
  • No
@jdgamble555 jdgamble555 added the enhancement New feature or request label Mar 13, 2024
@brandonroberts brandonroberts changed the title Server Form Actions Feature: Server Form Actions Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant