redux-validate-fsa
Advanced tools
Weekly downloads
Readme
Redux middleware that validates if an action is a Flux Standard Action (FSA).
const middleware = [reduxThunk]
// Only use in DEV mode
if (__DEV__) {
const fsaMiddleware = require('redux-validate-fsa')(ignore /* optional */)
middleware.push(fsaMiddleware)
}
The ignore
argument specify actions that should be skipped from the FSA check. This is useful when dealing with non-compliant actions from third-party libraries.
For example, if you use redux-simple-router, you should ignore its update-path actions, which are not FSA compliant.
import {UPDATE_PATH} from 'redux-simple-router'
const fsaMiddleware = require('redux-validate-fsa')([UPDATE_PATH])
Notes:
ignore
predicate to filter out actions that are thunks.npm install
npm test
FAQs
Redux middleware that validates if an action is a Flux Standard Action (FSA)
The npm package redux-validate-fsa receives a total of 148 weekly downloads. As such, redux-validate-fsa popularity was classified as not popular.
We found that redux-validate-fsa 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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.