Add a prependMedia/updateMediaElements context actions for useUploadMedia #2072
Labels
Group: Media
P3
Nice to have
Status: Duplicate
This issue or pull request already exists
Type: Code Quality
Things that need a refactor, rewrite or just some good old developer ❤️
As it is now, useUploadMedia consumes the 'media' attribute (ie. the array of the media resources) in order to prepend uploaded media resources. This is inefficient, and adds an unnecessary dependency to the 'media' attribute inside of useUploadMedia.
As an alternative, a 'prependMedia' and/or updateMediaElements context actions can be added to add the uploaded media resources instead.
The text was updated successfully, but these errors were encountered: