Skip to content

Commit 61a50a3

Browse files
authored
don't compare any state items in sCU
1 parent cef713b commit 61a50a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/views/transportation/bus/bus-line.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {getScheduleForNow, getSetOfStopsForNow} from './lib'
66
import get from 'lodash/get'
77
import zip from 'lodash/zip'
88
import head from 'lodash/head'
9-
import isEqual from 'lodash/isEqual'
109
import last from 'lodash/last'
1110
import moment from 'moment-timezone'
1211
import * as c from '../../components/colors'
@@ -108,8 +107,7 @@ export class BusLine extends React.Component<void, Props, State> {
108107
return (
109108
this.props.now.isSame(nextProps.now, 'minute') ||
110109
this.props.line !== nextProps.line ||
111-
this.props.openMap !== nextProps.openMap ||
112-
!isEqual(this.state.currentMoments, nextState.currentMoments)
110+
this.props.openMap !== nextProps.openMap
113111
)
114112
}
115113

0 commit comments

Comments
 (0)