Skip to content

delete field:updated emit from field media component - #309

Merged
jannescb merged 1 commit into
litstack:3.xfrom
Chrissle28:fix/field-media
Jun 1, 2023
Merged

delete field:updated emit from field media component#309
jannescb merged 1 commit into
litstack:3.xfrom
Chrissle28:fix/field-media

Conversation

@Chrissle28

Copy link
Copy Markdown
Contributor

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.

@jannescb
jannescb merged commit 16ac01c into litstack:3.x Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants