Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@bripkens/rxstore
Advanced tools
For more information about the rxstore project, refer to the root-readme of the rxstore project.
Store implementation.
npm install --save @bripkens/rxstore
–or–
yarn add @bripkens/rxstore
rxstore differentiates between stores and tracking stores.
import {createStore} from '@bripkens/rxstore';
const store = createStore({
name: 'counter',
getInitialState() {
return 0;
},
onStart({increment, decrement}) {
// called when the first subscriber subscribers
},
onStop({increment, decrement}) {
// called when the last subscriber unsubscribes
},
actions: {
increment(currentState, n = 1) {
return currentState + n;
},
decrement(currentState, n = 1) {
return currentState - n;
}
}
});
store.observable.subscribe(v => console.log(v));
store.actions.increment(3);
// logs: 3
store.actions.decrement(2);
// logs 2
import {createTrackingStore} from '@bripkens/rxstore';
const store = createTrackingStore({
name: 'current time',
observable: Rx.Observable.interval(1000)
});
store.observable.subscribe(v => console.log(v));
import {setUncaughtErrorHandler} from '@bripkens/rxstore';
setUncaughtErrorHandler((location, error, state, actioName, args) => {
// do something with this info
});
FAQs
RxJS based stores for highly reactive UIs
The npm package @bripkens/rxstore receives a total of 1 weekly downloads. As such, @bripkens/rxstore popularity was classified as not popular.
We found that @bripkens/rxstore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.