Debugging search performance issue; Genius intermittent rlyrics result rendered (seems like a different HTML body response)

This commit is contained in:
James Barnsley
2020-09-16 21:13:25 +12:00
parent 111e14a72d
commit 7fde458926
11 changed files with 46 additions and 77 deletions

View File

@ -742,6 +742,9 @@ const CoreMiddleware = (function () {
case 'ITEMS_LOADED':
const mergedItems = [];
console.time('TIMER')
// THE FOLLOWING LINES ARE THE CULPRIT
action.items.forEach((item) => {
mergedItems.push({
...core.items[item.uri] || {},
@ -749,6 +752,8 @@ const CoreMiddleware = (function () {
});
store.dispatch(uiActions.stopLoading(item.uri));
});
// ABOVE
store.dispatch(coreActions.updateColdStore(mergedItems));
next({
...action,