Replies: 1 comment 1 reply
-
Couldn't you just make a form inside an island that talks to a separate API route? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
It would be beneficial for form components to manage their own submission logic internally. This approach offers several advantages:
Enhanced Reusability: Components become self-contained, handling submission and rendering updates independently. This allows for easy reuse across different pages and applications.
Improved Code Organization: Decoupling submission logic from page-level code leads to cleaner, more maintainable codebases, especially when dealing with multiple forms per page.
Support for AJAX-like Behavior: One feature that would greatly enhance Fresh's form handling capabilities is built-in support for AJAX-like behavior. This would allow developers to update forms without full page reloads, creating a smoother and more responsive user experience. Fresh currently supports Partial, however, it changes the url when a form is sumbitted.
This feature would provide a valuable alternative to traditional AJAX, enabling developers to create dynamic and responsive forms within the Fresh framework.
Related issues:
Beta Was this translation helpful? Give feedback.
All reactions