We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2895d commit 7ce0256Copy full SHA for 7ce0256
packages/react/src/redux.ts
@@ -77,6 +77,11 @@ const defaultOptions: SentryEnhancerOptions = {
77
stateTransformer: state => state || null,
78
};
79
80
+/**
81
+ * Creates an enhancer that would be passed to Redux's createStore to log actions and the latest state to Sentry.
82
+ *
83
+ * @param enhancerOptions Options to pass to the enhancer
84
+ */
85
function createReduxEnhancer(enhancerOptions?: Partial<SentryEnhancerOptions>): StoreEnhancer {
86
const options = {
87
...defaultOptions,
0 commit comments