Skip to content

Update DefaultCompositeConfig to send the correct object when updating listeners #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2025

Conversation

akang31
Copy link
Contributor

@akang31 akang31 commented Jul 30, 2025

Dependent views (e.g. PrefixedViewConfig and the PrivateViewConfig) look at the object being passed when there is a new config added or updated. However, currently the DefaultCompositeConfig passes the config being added/removed instead of itself. That means the PrefixedViewConfig/PrivateViewConfig will be updated to JUST the values of the added/removed config (which is either wrong, or very wrong).

This PR updates DefaultCompositeConfig to correctly pass itself.

Interestingly enough, the DefaultLayeredConfig actually just calls configUpdated (with itself) when there are equivalent such adds/removes.

@akang31 akang31 merged commit 65540f7 into 2.x Jul 31, 2025
11 checks passed
@akang31 akang31 deleted the 2.x-fix-dcc-config-add-remove branch July 31, 2025 20:36
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.

1 participant