civiccc / civiccc/react-waypoint

onEnter event not working on Firefox

Open
#331 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

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 ? (
<>


for Waypoint working on fire fox


fetchMoreThreads()} />

) : isFetchingMoreThreads ? (

) : null}`
Here is my code and if I remove the `

` element its not fetch new data (just in firefox this happens).
How should I fix the problem without adding a useless element?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.