diff --git a/packages/react/src/redux.ts b/packages/react/src/redux.ts index 35c4064d47dc..195953c3fdc5 100644 --- a/packages/react/src/redux.ts +++ b/packages/react/src/redux.ts @@ -77,6 +77,11 @@ const defaultOptions: SentryEnhancerOptions = { stateTransformer: state => state || null, }; +/** + * Creates an enhancer that would be passed to Redux's createStore to log actions and the latest state to Sentry. + * + * @param enhancerOptions Options to pass to the enhancer + */ function createReduxEnhancer(enhancerOptions?: Partial): StoreEnhancer { const options = { ...defaultOptions,