Gathering detailed insights and metrics for react-loading-infinite-scroller
Gathering detailed insights and metrics for react-loading-infinite-scroller
Gathering detailed insights and metrics for react-loading-infinite-scroller
Gathering detailed insights and metrics for react-loading-infinite-scroller
react-infinite-scroller
Infinite scroll component for React in ES6
@types/react-infinite-scroller
TypeScript definitions for react-infinite-scroller
react-infinite-scroll-hook
A simple hook to create infinite scroll components
react-infinite-scroll-component
An Infinite Scroll component in react.
npm install react-loading-infinite-scroller
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
28 Commits
9 Watching
16 Branches
14 Contributors
Updated on 30 Jul 2020
JavaScript (81.83%)
Shell (18.17%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
18
Compared to previous week
Last month
50%
21
Compared to previous month
Last year
-96.5%
347
Compared to previous year
3
26
1import LoadingInfiniteScroll from 'loading-infinite-scroller' 2import { assignData, requestData } from 'pass-culture-shared' 3import React, { Component } from 'react' 4import { connect } from 'react-redux' 5import { withRouter } from 'react-router-dom' 6import { compose } from 'redux' 7 8 9class FoosPage extends Component { 10 constructor (props) { 11 super(props) 12 const { dispatch } = props 13 14 this.state = { 15 hasMore: false, 16 isLoading: false 17 } 18 19 dispatch(assignData({ foos: [] })) 20 } 21 22 componentDidMount() { 23 this.handleRequestData() 24 } 25 26 componentDidUpdate(prevProps) { 27 const { location } = this.props 28 if (location.search !== prevProps.location.search) { 29 this.handleRequestData() 30 } 31 } 32 33 handleRequestData = (handleSuccess, handleFail) => { 34 const { user, dispatch, location } = this.props 35 const { search } = location 36 37 const path = `foos${search}` 38 39 this.setState({ isLoading: true }, () => { 40 dispatch( 41 requestData('GET', path, { 42 handleFail: () => { 43 this.setState({ 44 hasMore: false, 45 isLoading: false 46 }) 47 }, 48 handleSuccess: (state, action) => { 49 this.setState({ 50 hasMore: action.data && action.data.length > 0, 51 isLoading: false 52 }) 53 } 54 }) 55 ) 56 }) 57 58 render () { 59 const { foos, query } = this.props 60 const { hasMore, isLoading } = this.state 61 62 return ( 63 <LoadingInfiniteScroll 64 hasMore={hasMore} 65 isLoading={isLoading} 66 useWindow 67 > 68 { 69 foos.map(offerer => 70 <OffererItem article={foo} key={foo.id} /> 71 ) 72 } 73 </LoadingInfiniteScroll> 74 ) 75 } 76} 77 78FoosPage.defaultProps = { 79 foos: null 80} 81 82FoosPage.propTypes = { 83 foos: PropTypes.array 84} 85 86function mapStateToProps(state) { 87 return { 88 foos: state.data.foos 89 } 90} 91 92export default compose( 93 withRouter, 94 connect(mapStateToProps) 95)(FoosPage)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
53 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More