Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reducers will receive an empty action when filterActions was invoked #19

Open
cicada1993 opened this issue Jul 19, 2018 · 0 comments
Open

Comments

@cicada1993
Copy link

cicada1993 commented Jul 19, 2018

following is an filter function

import { filterActions } from 'redux-ignore'

const filter = (reducer, moduleName) => {
  console.log(moduleName)
  const reg = new RegExp(`^${moduleName}`)
  return filterActions(reducer, action => action && action.type && action.type.match(reg))
}

module.exports = filter

following is log
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant