Hotfix - Turn off loading new notifications (for now)
• Hotfix: - Turn off loading new notifications for now. Loading new notifications loads the same initial notifications. This will be in place until the notification page loads new notifications with max_id.
This commit is contained in:
parent
c0122559fa
commit
4443e4c4ed
@ -54,12 +54,12 @@ class Notifications extends ImmutablePureComponent {
|
||||
|
||||
handleLoadGap = (maxId) => {
|
||||
// maxId={index > 0 ? notifications.getIn([index - 1, 'id']) : null}
|
||||
this.props.dispatch(expandNotifications({ maxId }))
|
||||
// this.props.dispatch(expandNotifications({ maxId }))
|
||||
}
|
||||
|
||||
handleLoadOlder = debounce(() => {
|
||||
const last = this.props.notifications.last()
|
||||
this.props.dispatch(expandNotifications({ maxId: last && last.get('id') }))
|
||||
// this.props.dispatch(expandNotifications({ maxId: last && last.get('id') }))
|
||||
}, 300, { leading: true })
|
||||
|
||||
handleScrollToTop = debounce(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user