Gathering detailed insights and metrics for use-reselect
Gathering detailed insights and metrics for use-reselect
Gathering detailed insights and metrics for use-reselect
Gathering detailed insights and metrics for use-reselect
npm install use-reselect
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (66.89%)
JavaScript (31.31%)
HTML (1.8%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
6 Stars
3 Commits
2 Watchers
2 Branches
1 Contributors
Updated on Aug 08, 2019
Latest Version
0.0.2
Package Id
use-reselect@0.0.2
Unpacked Size
11.97 kB
Size
2.76 kB
File Count
14
NPM Version
6.2.0
Node Version
10.9.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
DEVELOPMENT PREVIEW
This is a fork of reselect, mixed with kashe and React hooks
.
API is 100% compatible with Reselect.
createSelector
- as seen in reselectuseReselect(cb)
- selection runner. All selectors inside would be executed inside a sandbox, making result instance bound.1const getUser = createSelector((state: any, userId: string) => ( 2 state.users[userId] + `:${recomputations++}` 3), i => i); 4 5const User = ({userId, tick}) => { 6 const userName = useReselect(() => getUser(state, userId)); 7 return <span>user({userId}): {userName}</span> 8} 9 10// this would work 11<> 12 <User userId="user1" /> 13 <User userId="user2" /> 14</> 15 16 17// this would not, getUser still could hold only one result 18const DoubleUser = ({userId, tick}) => { 19 const [u1, u2] = useReselect(() => [getUser(state, 'a'),getUser(state, 'b')]); 20 return <span>{u1} - {u2}</span> 21}
useReReselect(cb)
- selection runner. Every selector inside would be executed in a personal sandbox, making it instance bound1// every selector would be executed in a personal sandbox 2const DoubleUser = ({userId, tick}) => { 3 const [u1, u2] = useReReselect(() => [getUser(state, 'a'),getUser(state, 'b')]); 4 return <span>{u1} - {u2}</span> 5}
1// run it once 2const [u1, u2] = useReReselect(() => [getUser(state, 'a'),getUser(state, 'b')]); 3// get "hooks" 4const stack = useReReselect.getStack(); 5 6// run it with "custom hooks" 7const [u1, u2] = useReReselect(() => [getUser(state, 'a'),getUser(state, 'b')], stack);
All selectors are double memoized, letting shareable data be shared.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/3 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
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
131 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@dynamic-selectors/with-reselect
Use dynamic selector functions with Reselect
angular-reselect
Reselect is a directive built off of [Angular's HTML SELECT](https://docs.angularjs.org/api/ng/directive/select) element. Reselect features searching, ability to use remote data sets, infinite scrolling of results, and handling of invalid choices.
reselect-immutable-helpers
A helper library to make it simpler to use Reselect with an Immutable.JS store
iamsee-reselect-immutable
A helper library to make it simpler to use Reselect with an Immutable.JS store