Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export default class Timeline extends Component {
shouldComponentUpdate(nextProps) {
const { items, groups, options, selection, customTimes } = this.props

const itemsChange = items !== nextProps.items
const groupsChange = groups !== nextProps.groups
const optionsChange = options !== nextProps.options
const customTimesChange = customTimes !== nextProps.customTimes
const selectionChange = selection !== nextProps.selection
const itemsChange = JSON.stringify(items) !== JSON.stringify(nextProps.items)
const groupsChange = JSON.stringify(groups) !== JSON.stringify(nextProps.groups)
const optionsChange = JSON.stringify(options) !== JSON.stringify(nextProps.options)
const customTimesChange = JSON.stringify(customTimes) !== JSON.stringify(nextProps.customTimes)
const selectionChange = JSON.stringify(selection) !== JSON.stringify(nextProps.selection)

return (
itemsChange ||
Expand Down