Skip to content

Commit ea90337

Browse files
authored
add unique key for virtualized list
1 parent 0858210 commit ea90337

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MasonryList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export default class MasonryList extends React.Component<Props, State> {
237237
{this.state.columns.map(col =>
238238
<VirtualizedList
239239
{...props}
240+
listKey={(item, index) => item.id + index.toString()}
240241
ref={ref => (this._listRefs[col.index] = ref)}
241242
key={`$col_${col.index}`}
242243
data={col.data}

0 commit comments

Comments
 (0)