Gathering detailed insights and metrics for react-select-async-paginate-self
Gathering detailed insights and metrics for react-select-async-paginate-self
Gathering detailed insights and metrics for react-select-async-paginate-self
Gathering detailed insights and metrics for react-select-async-paginate-self
Wrapper above react-select that supports pagination on menu scroll
npm install react-select-async-paginate-self
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
934
Last Day
2
Last Week
8
Last Month
23
Last Year
156
MIT License
30 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Aug 23, 2018
Minified
Minified + Gzipped
Latest Version
0.1.1
Package Id
react-select-async-paginate-self@0.1.1
Unpacked Size
15.19 kB
Size
4.74 kB
File Count
4
NPM Version
5.6.0
Node Version
8.11.2
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
300%
8
Compared to previous week
Last Month
53.3%
23
Compared to previous month
Last Year
19.1%
156
Compared to previous year
3
Wrapper above react-select
that supports pagination on menu scroll.
This (react-select-async-paginate
0.2.x) is the version of react-select-async-paginate
for use with react-select
2.x. For use with react-select
1.x you can install react-select-async-paginate
0.1.x.
npm install react-select react-select-async-paginate
or
yarn add react-select react-select-async-paginate
AsyncPaginate
is an alternative of Select.Async
but supports loading page by page. It is wrapper above default react-select
thus it accepts all props of default Select
except isLoading
. And there are some new props:
loadOptions
Required. Async function that take two arguments:
It should return next object:
{
options: [{ label: 'label', value: 'value' }, ...],
hasMore: true/false,
}
It similar to loadOptions
from Select.Async
but there is some differences:
hasMore
for detect end of options list for current search.cacheUniq
Not required. Can take any value. When this prop changed, AsyncPaginate
cleans all cached options.
selectRef
Ref for take react-select
instance.
import AsyncPaginate from 'react-select-async-paginate';
...
/*
* assuming the API returns something like this:
* const json = {
* results: [
* {
* value: 1,
* label: 'Audi',
* },
* {
* value: 2,
* label: 'Mercedes',
* },
* {
* value: 3,
* label: 'BMW',
* },
* ],
* has_more: true,
* };
*/
async function loadOptions(search, loadedOptions) {
const response = await fetch(`/awesome-api-url/?search=${search}&offset=${loadedOptions.length}`);
const responseJSON = await response.json();
return {
options: responseJSON.results,
hasMore: responseJSON.has_more,
};
}
<AsyncPaginate
value={value}
loadOptions={loadOptions}
onChange={setValue}
/>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
140 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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