-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
New method for executing on save operations #77
Labels
Comments
flauc
added a commit
that referenced
this issue
Feb 11, 2022
flauc
added a commit
that referenced
this issue
Feb 11, 2022
flauc
added a commit
that referenced
this issue
Feb 11, 2022
flauc
added a commit
that referenced
this issue
Feb 11, 2022
flauc
added a commit
that referenced
this issue
Feb 11, 2022
flauc
added a commit
that referenced
this issue
Feb 11, 2022
flauc
added a commit
that referenced
this issue
Feb 11, 2022
flauc
added a commit
that referenced
this issue
Feb 11, 2022
github-actions bot
pushed a commit
that referenced
this issue
Feb 11, 2022
# [1.6.0](https://github.com/Jaspero/schema-forms/compare/@jaspero/[email protected]...@jaspero/[email protected]) (2022-02-11) ### Bug Fixes * better naming conventions for uploaded files [#77](#77) ([44c3a9d](44c3a9d)) ### Features * refactored all fields to use new save method approach ([6e20934](6e20934)) * **form-builder:** processing method on file component working 🎉 [#77](#77) ([af89035](af89035))
github-actions bot
pushed a commit
that referenced
this issue
Feb 11, 2022
# [5.4.0](https://github.com/Jaspero/schema-forms/compare/@jaspero/[email protected]...@jaspero/[email protected]) (2022-02-11) ### Bug Fixes * better naming conventions for uploaded files [#77](#77) ([44c3a9d](44c3a9d)) ### Features * **page-builder:** connected save methods [#77](#77) ([b8a1730](b8a1730)) * refactored all fields to use new save method approach ([6e20934](6e20934)) * **form-builder:** forwarding formId and parentForm to segments and fields ([918454d](918454d)) * **form-builder:** processing method on file component working 🎉 [#77](#77) ([af89035](af89035)) * **form-builder:** refactored save method [#77](#77) ([fc8ca71](fc8ca71))
github-actions bot
pushed a commit
that referenced
this issue
Feb 11, 2022
# [3.21.0](https://github.com/Jaspero/schema-forms/compare/@jaspero/[email protected]...@jaspero/[email protected]) (2022-02-11) ### Bug Fixes * better naming conventions for uploaded files [#77](#77) ([44c3a9d](44c3a9d)) ### Features * **page-builder:** added img-preview directive for rendering preview when controls value is a File [#77](#77) ([d79319a](d79319a)) * **page-builder:** connected save methods [#77](#77) ([b8a1730](b8a1730)) * refactored all fields to use new save method approach ([6e20934](6e20934)) * **form-builder:** forwarding formId and parentForm to segments and fields ([918454d](918454d)) * **form-builder:** processing method on file component working 🎉 [#77](#77) ([af89035](af89035)) * **form-builder:** refactored save method [#77](#77) ([fc8ca71](fc8ca71))
github-actions bot
pushed a commit
that referenced
this issue
Feb 11, 2022
# [2.6.0](https://github.com/Jaspero/schema-forms/compare/@jaspero/[email protected]...@jaspero/[email protected]) (2022-02-11) ### Bug Fixes * better naming conventions for uploaded files [#77](#77) ([44c3a9d](44c3a9d)) ### Features * refactored all fields to use new save method approach ([6e20934](6e20934))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Approach
At the moment when using a field that needs to mutate the dataset on save for example the
ImageComponent
needing to execute a file upload and set the value to the uploaded URL, the component itself pushes itssave
method into a service. This method is then called when save is triggered. Thesave
method edits the control's value to the exit value.This approach has a number of problems:
current
ImageComponent
save methodDesired Approach
example save method
Note: We still need to properly define this.
The text was updated successfully, but these errors were encountered: