Redux middleware to check for flux standard actions


1202.0.06 years ago6 years agoMinified + gzip package size for @meadow/redux-ensure-fsa in KB


Redux Ensure Flux Standard Action Middleware

redux-ensure-fsa provides a middleware function to use as part of the redux dispatch chain. It is intended for use in development only to check that all actions at the end of the chain follow the Flux Standard Action protocol.


npm install @meadow/redux-ensure-fsa


import { createStore, applyMiddleware } from 'redux';
import ensureFSAMiddleware from '@meadow/redux-ensure-fsa';
import thunkMiddleware from 'redux-thunk';

let middleware = [thunkMiddleware];

if (process.env.NODE_ENV !== 'production') {
  const fsaMiddleware = ensureFSAMiddleware({
    ignore: function (action) {
      return false;

  middleware = [...middleware, fsaMiddleware];

const createStoreWithMiddleware = applyMiddleware(...middleware)(createStore);


If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.