Gathering detailed insights and metrics for @app-elements/use-mapped-state
Gathering detailed insights and metrics for @app-elements/use-mapped-state
Gathering detailed insights and metrics for @app-elements/use-mapped-state
Gathering detailed insights and metrics for @app-elements/use-mapped-state
npm install @app-elements/use-mapped-state
Typescript
Module System
Node Version
NPM Version
JavaScript (84.43%)
Less (15.57%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
543 Commits
12 Watchers
20 Branches
20 Contributors
Updated on Sep 02, 2022
Latest Version
1.0.0
Package Id
@app-elements/use-mapped-state@1.0.0
Unpacked Size
15.82 kB
Size
3.38 kB
File Count
12
NPM Version
lerna/3.20.2/node@v12.4.0+x64 (linux)
Node Version
12.4.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
No dependencies detected.
useMappedState maps values from the provided (atom/Redux) store and keeps your Component synced with any changes to those mapped values.
npm install --save @app-elements/use-mapped-state
1import { useMappedState } from '@app-elements/use-mapped-state' 2import createStore from 'atom' 3 4const store = createStore([], { count: 0 }) 5 6// Here is a simple view that expects a `count` value 7// form the global state. 8const Stateful = (props) => { 9 // `mapper` is a function that is given the entire state object from your store. 10 // Your job is to return the portion of that state object that this Component 11 // is concerned with. 12 const mapper = ({ count }) => ({ count }) 13 const { count } = useMappedState(store, mapper) 14 return ( 15 <p>Count: {count}</p> 16 ) 17}
Prop | Type | Default | Description |
---|---|---|---|
store | Object | None | An (atom) store instance |
mapper | Function | None | A function that accepts (state) and returns an object |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/26 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
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
71 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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