
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.