shouldComponentUpdate to plug time-based rerenders?
This commit is contained in:
@ -80,7 +80,6 @@ export default function reducer(core = {}, action) {
|
||||
(obj, item) => (obj[item.uri] = item, obj),
|
||||
{},
|
||||
);
|
||||
console.timeEnd('TIMER');
|
||||
return {
|
||||
...core,
|
||||
items: {
|
||||
|
||||
@ -355,8 +355,8 @@ export function getImages(context, uri) {
|
||||
|
||||
export function loveTrack(uri) {
|
||||
return (dispatch, getState) => {
|
||||
const track = getState().core.items[uri];
|
||||
if (getState().core.items[uri] !== undefined) {
|
||||
var track = getState().core.items[uri];
|
||||
if (!track.artists) {
|
||||
dispatch(coreActions.handleException(
|
||||
'Could not love LastFM track',
|
||||
|
||||
Reference in New Issue
Block a user