Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@storeon/angular
Advanced tools
A tiny event-based Redux-like state manager Storeon for Angular.
Online Demo | Demo with Angular Ivy
It is just 526 bytes (minified and gzipped) Angular module. It uses Size Limit to control size.
Read more about Storeon article.
import createStore from 'storeon'
// Initial state, reducers and business logic are packed in independent modules
let increment = store => {
// Initial state
store.on('@init', () => ({ count: 0 }))
// Reducers returns only changed part of the state
store.on('inc', ({ count }) => ({ count: count + 1 }))
}
export const store = createStore([increment])
// your NgModule
import { NgStoreonModule } from 'ng-storeon';
@NgModule({
imports: [NgStoreonModule], // NgStoreonModule
...
providers: [{
provide: 'STOREON',
useValue: store // your store
}],
...
// your component
import { Component, OnInit } from '@angular/core';
import { NgStoreonService } from 'ng-storeon';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
changes: Subject<any>;
dispatch: Function;
constructor(private ngstoreon: NgStoreonService) { }
title = 'sroreon-angular';
ngOnInit() {
const { dispatch, changes } = this.ngstoreon.useStoreon('count');
this.dispatch = dispatch;
this.changes = changes;
}
updateState() {
this.dispatch('inc');
}
}
FAQs
Storeon for Angular 🅰⚡
We found that @storeon/angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.