You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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