react-trello
react-trello copied to clipboard
Installing the package using yarn does not have the latest code from repo.
The code available in Lane.js file is
if (elemScrollPosition < 1 && onLaneScroll && !this.state.loading) {
const {currentPage} = this.state
this.setState({loading: true})
const nextPage = currentPage + 1
onLaneScroll(nextPage, this.props.id).then(moreCards => {
if ((moreCards || []).length > 0) {
this.props.actions.paginateLane({
laneId: this.props.id,
newCards: moreCards,
nextPage: nextPage
})
}
this.setState({loading: false})
})
}
But when i install the package using yarn, it's downloading the latest version but in devtools, the Lane.js file shows
if (elemScrollPosition <= 0 && onLaneScroll && !this.state.loading) {
const currentPage = this.state.currentPage;
this.setState({
loading: true
});
const nextPage = currentPage + 1;
onLaneScroll(nextPage, this.props.id).then(moreCards => {
if (!moreCards || moreCards.length === 0) {
// if no cards present, stop retrying until user action
node.scrollTop = node.scrollTop - 100;
} else {
this.props.actions.paginateLane({
laneId: this.props.id,
newCards: moreCards,
nextPage: nextPage
});
}
this.setState({
loading: false
});
});
}
Is the latest code published or am I missing something?? @rcdexta