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

refactor handler.ts Handlers #451

Closed
alee opened this issue May 13, 2019 · 0 comments
Closed

refactor handler.ts Handlers #451

alee opened this issue May 13, 2019 · 0 comments

Comments

@alee
Copy link
Member

alee commented May 13, 2019

Initial draft design of interacting components:

  • API knows the endpoint and how to invoke it and with what parameters and drives the process
  • ServerResponseHandler builds coherent data structures out of a server response for use by the Component
  • Components are responsible for stitching together the ServerResponseHandler and doing stuff based on its state (dismiss a modal, redirect on success, display a message somewhere on the DOM, display validation errors)
alee added a commit that referenced this issue May 13, 2019
- merge FormComponent and FormRedirectComponent for the interim, a
larger refactor is planned for this class in #451
@sgfost sgfost closed this as completed May 4, 2023
hwelsters pushed a commit to hwelsters/comses.net that referenced this issue May 10, 2023
- merge FormComponent and FormRedirectComponent for the interim, a
larger refactor is planned for this class in comses#451
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants