Skip to content

feat: Pass story and config to InfiniteStoryBase component#50

Merged
iamgarima merged 4 commits intomasterfrom
conf-scroll
Dec 3, 2018
Merged

feat: Pass story and config to InfiniteStoryBase component#50
iamgarima merged 4 commits intomasterfrom
conf-scroll

Conversation

@iamgarima
Copy link
Contributor

Pass story and config to InfiniteStoryBase component

@asimqt asimqt changed the title Configurable infinite scroll feat: Pass story and config to InfiniteStoryBase component Nov 30, 2018
const pageNumber = this.state.pageNumber;
this.setState({loading: true, pageNumber: pageNumber + 1}, () => {
this.props.loadItems(pageNumber).then((items) => {
this.props.loadItems(pageNumber, this.props.data.story, this.props.config).then((items) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

use get

@iamgarima iamgarima merged commit 144f906 into master Dec 3, 2018
@delete-merged-branch delete-merged-branch bot deleted the conf-scroll branch December 3, 2018 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants