Fix infinite scrolling breaking after navigation
This commit is contained in:
@ -37,9 +37,12 @@ const normalizeNotifications = (state, notifications, next) => {
|
||||
items = items.set(i, notificationToMap(n));
|
||||
});
|
||||
|
||||
if (state.get('next') === null) {
|
||||
state = state.set('next', next);
|
||||
}
|
||||
|
||||
return state
|
||||
.update('items', list => loaded ? list.unshift(...items) : list.push(...items))
|
||||
.set('next', next)
|
||||
.set('loaded', true)
|
||||
.set('isLoading', false);
|
||||
};
|
||||
|
Reference in New Issue
Block a user