Skip to content

chore: remove unused legacy contextTypes from App - #3480

Open
janhenrikoverland wants to merge 1 commit into
masterfrom
chore/remove-legacy-context-types
Open

janhenrikoverland wants to merge 1 commit into
masterfrom
chore/remove-legacy-context-types

Conversation

@janhenrikoverland

@janhenrikoverland janhenrikoverland commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

UnconnectedApp declared contextTypes = { store: PropTypes.object } but never reads this.context. It's dead code left over from old react-redux, and it caused this warning in App.spec.jsx:

Warning: UnconnectedApp uses the legacy contextTypes API which is no longer supported and will be removed in the next major release.

UnconnectedApp declared contextTypes for the redux store but never read
this.context, and it triggered a React legacy context API warning in tests.
@sonarqubecloud

Copy link
Copy Markdown

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-3480.data-visualizer.netlify.dhis2.org

This branch was successfully deployed

1 active deployment
netlify — a6c7bded Deployed Oct 12, 2026 by dhis2-bot
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.

2 participants