Skip to content

Add FeatureAttribute.DebuggerBrowsable property to exclude features from ReduxDevTools serialization (Fixes #541)#546

Merged
mrpmorris merged 3 commits intomasterfrom
541/PeteM-ExcludeFeaturesFromRdt
Aug 19, 2025
Merged

Add FeatureAttribute.DebuggerBrowsable property to exclude features from ReduxDevTools serialization (Fixes #541)#546
mrpmorris merged 3 commits intomasterfrom
541/PeteM-ExcludeFeaturesFromRdt

Conversation

@mrpmorris
Copy link
Copy Markdown
Owner

  • Added DebuggerBrowsable property to FeatureAttribute to prevent state being sent to ReduxDevTools (#541)

@mrpmorris mrpmorris added this to the 6.8 milestone Aug 19, 2025
@mrpmorris mrpmorris requested a review from Copilot August 19, 2025 20:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a DebuggerBrowsable property to the FeatureAttribute that allows developers to exclude specific feature states from being serialized and sent to ReduxDevTools. This addresses issue #541 by providing a way to prevent sensitive or large state objects from appearing in the developer tools.

  • Added DebuggerBrowsable property to FeatureStateAttribute (defaults to true)
  • Implemented the property throughout the feature infrastructure
  • Modified ReduxDevTools middleware to filter out non-browsable features

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
FeatureStateAttribute.cs Adds the new DebuggerBrowsable property with default value true
IFeature.cs Defines the interface contract for the new property and fixes a typo
Feature.cs Implements the DebuggerBrowsable property in the base class
FeatureStateWrapper.cs Initializes the property from the attribute during feature creation
ReduxDevToolsMiddleware.cs Filters features based on DebuggerBrowsable before serialization
CounterState.cs Example usage showing how to exclude a feature from debugging
releases.md Documents the new feature in version 6.8

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mrpmorris mrpmorris merged commit d791bda into master Aug 19, 2025
1 check passed
@mrpmorris mrpmorris deleted the 541/PeteM-ExcludeFeaturesFromRdt branch August 19, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A way to exclude the state of specific features from being sent to Redux DevTools

2 participants