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

Filter actions #77

Closed
garrettheel opened this issue Aug 19, 2015 · 8 comments
Closed

Filter actions #77

garrettheel opened this issue Aug 19, 2015 · 8 comments

Comments

@garrettheel
Copy link

I have certain actions which are generated very frequently. When the devTools middleware is applied, this makes things very slow and clutters the monitors with lots of data.

It would be great if there were a way to specify a filter for an action to be ignored by devtools.

Thanks!

@gaearon
Copy link
Contributor

gaearon commented Sep 27, 2015

I have certain actions which are generated very frequently. When the devTools middleware is applied, this makes things very slow and clutters the monitors with lots of data.

The slowness is no longer an issue as of redux-devtools@2.1.5: #133.

It would be great if there were a way to specify a filter for an action to be ignored by devtools.

There is a plan for a more modular UI that would allow this, please track #74.

@gaearon gaearon closed this as completed Sep 27, 2015
@garrettheel
Copy link
Author

Thanks!

@tomatau
Copy link

tomatau commented Oct 1, 2015

I have this working in a fork right now as I couldn't wait and so threw together a dirty dirty hack.

It's using React-0.14-rc and has a terrible label statement to break loops but it works, you can supply an array of regex values that will not be displayed in the logMonitor

          <DevTools
            select={state =>get(state, 'myForm')}
            actionTypeFilters={[/UPDATE_FORM/, /IGNORE/]}
            store={store}
            monitor={LogMonitor}
          />
"redux-devtools": "tomatau/redux-devtools",

@Anahkiasen
Copy link

👍 Would love to see this built-in. We have async actions that save data in the back-end and they clutter the whole devtool

@luisrudge
Copy link

This would be a great. Specially when working with redux-form, which sends A BUNCH of actions. When I use redux-form with dev tools, it lags pretty hard if I type a little faster.

@ptim
Copy link

ptim commented Nov 17, 2015

I'm in the same boat: getting overwhelmed by state updates, particularly with redux-forms.. +1 for filtering!

@gaearon
Copy link
Contributor

gaearon commented Nov 17, 2015

Sorry but +1's don't help anyhow. 😉
Monitors can already be developed by users.
Feel free to fork the log monitor, add filtering to it, and then propose your changes.

@gaearon
Copy link
Contributor

gaearon commented Dec 26, 2015

Please use https://github.com/zalmoxisus/redux-devtools-filter-actions.
It can be composed with any monitor.

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

6 participants