captbaritone / raven-for-redux

A Raven middleware for Redux
295 stars 25 forks source link

any example how to use getusercontext ? #78

Closed heyharii closed 6 years ago

captbaritone commented 6 years ago

Something like this?


const ravenMiddleware = createRavenMiddleware(Raven, {
    getUserContext: state => ({
        id: state.user.id,
        username: state.user.username,
        role: state.user.role
    })
});
captbaritone commented 6 years ago

I'll close this for now. Let me know if that helps.