You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reading packages/react/src/redux.ts on master and using Sentry.createReduxEnhancer() with Redux Toolkit's configureStore
What I'm seeing
When a thunk calls rejectWithValue('some string'), the rejected action has the value in action.payload and action.error.message is just 'Rejected'. there is no original Error or stack trace on the action.
What I read in the source
From packages/react/src/redux.ts, createReduxEnhancer seems to only add redux.action breadcrumbs and attach redux state. I didn't find anything that captures an exception for rejected actions. [Correct me if I missed it.]
Questions
-- Is it intentional that the enhancer doesn't capture rejected thunks?
-- What's the recommended way to capture them (a custom middleware, captureException in the thunk, something else)? 🤔🤔
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'm reading packages/react/src/redux.ts on master and using Sentry.createReduxEnhancer() with Redux Toolkit's configureStore
What I'm seeing
When a thunk calls rejectWithValue('some string'), the rejected action has the value in action.payload and action.error.message is just 'Rejected'. there is no original Error or stack trace on the action.
What I read in the source
From packages/react/src/redux.ts, createReduxEnhancer seems to only add redux.action breadcrumbs and attach redux state. I didn't find anything that captures an exception for rejected actions. [Correct me if I missed it.]
Questions
-- Is it intentional that the enhancer doesn't capture rejected thunks?
-- What's the recommended way to capture them (a custom middleware, captureException in the thunk, something else)? 🤔🤔
All reactions