leecade / leecade/react-native-swiper
LoadMinimal/index.js If the data is late.
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
constructor(props) {
super(props)
this.state = {
imgList: [],
loadQueue: [0, 0, 0, 0]
}
this.loadHandle = this.loadHandle.bind(this)
}
componentDidMount() {
this.get()
}
get() {
setTimeout(() => {
this.setState({
imgList: [
'https://www.baidu.com/img/bd_logo1.png',
'https://www.baidu.com/img/bd_logo1.png',
'https://www.baidu.com/img/bd_logo1.png',
'https://www.baidu.com/img/bd_logo1.png']
})
}, 3000);
}
You can't show it after page 3.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with LoadMinimal/index.js and reproduce the issue using the delayed data shown in the report. Check why the content stops displaying after page 3 when imgList is populated asynchronously. Done means later pages render correctly even when the data arrives late.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100