Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
while (true) {
// Wait until we get ANY event
const { type, payload } = yield take()
if (type.startsWith('rrf') || type.startsWith('@'))
continue
if (filter[type])
filter[type].forEach(path =>
recursiveReplacer(path.split(/\./), payload)
)
Sentry.addBreadcrumb({
category: 'redux',
message: type,
level: type.match(/ERROR/) ? Sentry.Severity.Warning : Sentry.Severity.Info,
...(payload ?
{data: typeof payload === 'object' ? payload : {payload}} :
{}
)
})
}
}