Create [PRE]APPEND_MEDIA action to add uploaded media instead of SET_MEDIA #2513
Labels
Group: 3P Media
Third-party media provider integrations.
Type: Code Quality
Things that need a refactor, rewrite or just some good old developer ❤️
Type: Performance
Performance related issues and enhancements.
Task Description
Today, local media uses SET_MEDIA to set the entire media list when uploading media. This is bad practice, as uploading media becomes an n^m operation (n=images uploaded, m=list size), and may be prone to race conditions. A better approach would be have an action that adds the uploaded media to the list.
The text was updated successfully, but these errors were encountered: