delete field:updated emit from field media component #309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes a problem with the media field. If you had a block with repeatables that also have sub repeatables that are using a media field, this media field would trigger an api call that would try to reload the entire lit page. This process would be repeated for every repeatable with a media field, which would then in turn lead big pages with lots of repeatables to timeout and freeze. By deleting the field:updated emit inside the queueComplete function in the FieldMedia.vue component this api call is not fired anymore.