Comments (3)
@janicduplessis If you Threshold
is short... that state it is not enough, because change that state is async and in that async time _onEndReached can be dispatched multiple times
from react-native-masonry-list.
I don't have an timeframe for a fix, this is a known issue.
In my apps I'm using a flag to tell that I'm currently loading more data to avoid doing it multiple times and it works well for my use case. It looks like:
_onEndReached = () => {
if (!this.state.loading) {
// load more
}
};
This way even if onEndReached is called multiple times it still works.
from react-native-masonry-list.
@janicduplessis this works man! thanks by you comment!!
from react-native-masonry-list.
Related Issues (17)
- Encountered children with the same key HOT 6
- Two footer views HOT 1
- Use ListHeaderComponent HOT 1
- Not rendering data in two columns HOT 4
- Still performance issue. HOT 1
- Flickering when appending more items in data array during lazy loading HOT 1
- Items won't be displayed until scroll. Performance issue.
- I am always getting a white screen HOT 1
- The list drives crazy with 2 columns and > 60 elements HOT 7
- Pull to refresh not working HOT 1
- numColumns={3} not working for datalist
- Test Failing when import Masonry List
- some events are raised many times
- Support measuring items automatically HOT 4
- getHeightForItem HOT 1
- button in cell can not respond to the onPress event in time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-masonry-list.