-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Hi, I would like to know your opinion on a simple feature, that would allow me to filter which actions will be captured to breadcrumbs.
Usage
It could be a new option:
const options = {
breadcrumbFilter = action => action.type !== 'SOME_BANAL_ACTION',
};
const createStoreWithMiddleware = applyMiddleware(
RavenMiddleware('my-sentry-dsn', options)
)(createStore);
I would be happy to prepare a pull-request if you approve the feature.
Motivation
I work on an app, that periodically (several times in a second) checks if some external value didn't change from the stored value. Redux way would be to always dispatch an action with current value and move the comparison to the reducer.
But that would generate huge mess in the breadcrumbs, so instead we call some function, that compares current value to the state value and only if it differs, then it dispatches a new action to change the state.
Metadata
Metadata
Assignees
Labels
No labels