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
3 changes: 2 additions & 1 deletion Swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class Swiper extends Component {
const { props, state } = this
const propsChanged = (
!isEqual(props.cards, nextProps.cards) ||
props.cardIndex !== nextProps.cardIndex
props.cardIndex !== nextProps.cardIndex ||
props.renderCard !== nextProps.renderCard
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iyansr how does comparing the renderCard function help? I'm pretty sure it will not work or improve the swiper in any way, at least not without introducing a lot of other issues for other people.

)
const stateChanged = (
nextState.firstCardIndex !== state.firstCardIndex ||
Expand Down