Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onEnter event not working on Firefox #331

Open
farshidmk opened this issue Sep 22, 2020 · 0 comments
Open

onEnter event not working on Firefox #331

farshidmk opened this issue Sep 22, 2020 · 0 comments

Comments

@farshidmk
Copy link

I have an infinite list and to show list elements use the map function. after the map, I use the wayPoint onEnter function for fetching more items. It works fine in chrome but in Firefox it's not working.
when adding some element to show after the waypoint, onEnter events work and fetch new data (for example add some text in tag p)

{!isFetchingMoreThreads && canFetchMoreThreads * PAGE_SIZE < totalThreadsCount ? ( <> <p> for Waypoint working on fire fox </p> <Waypoint onEnter={() => fetchMoreThreads()} /> </> ) : isFetchingMoreThreads ? ( <CircularProgress /> ) : null}
Here is my code and if I remove the <p> element its not fetch new data (just in firefox this happens).
How should I fix the problem without adding a useless element?

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

No branches or pull requests

1 participant