Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "conduxion", | ||
"version": "1.0.5", | ||
"description": "", | ||
"version": "1.0.6", | ||
"description": "Consequential Redux Actions", | ||
"keywords": [ | ||
"redux", | ||
"consequence", | ||
"typescript", | ||
"state", | ||
"state management" | ||
], | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"repository": "https://github.com/huboneo/conduxion", | ||
"scripts": { | ||
@@ -8,0 +16,0 @@ "clean": "rimraf dist", |
# Conduxion | ||
**Con**~~sequential~~ ~~re~~**dux** ~~act~~**ion**~~s~~ | ||
A small API extracting the goodness of https://github.com/edumentab/talks-redux-patterns by [@krawaller](https://github.com/krawaller). | ||
@@ -21,3 +23,3 @@ | ||
type: 'SET_IS_AUTHENTICATED', | ||
reducer (state, payload) { | ||
reducer(state, payload) { | ||
const {isAuthenticated} = payload; | ||
@@ -50,3 +52,3 @@ | ||
Instead of creating singleton reducers responsible for a single state slice, we create reducers for each individual action that can act on the entire state. | ||
Instead of creating singleton reducers responsible for a single state slice, we create reducers for each individual action that can act across the entire state. | ||
@@ -148,3 +150,3 @@ Should an action have consequences, they are declared on the action itself (as an event-emitter). | ||
// optional | ||
reducer: (state, payload) => { | ||
reducer(state, payload) { | ||
const {isAuthenticated} = payload; | ||
@@ -151,0 +153,0 @@ |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
31435
311