Closed MasterProvider closed 11 months ago
It is possible to set loading outside in InfiniteScroll any Idea?
const [loading,setLoading]=useState(false); <InfiniteScroll dataLength={} next={} hasMore={} loader={()=>setLoading(prev)=>!prev)} > </InfiniteScroll> {loading&(<p>loading..</p>)}
It is possible to set loading outside in InfiniteScroll any Idea?