Skip to content

fix(coding-conventions): Move Wrapper component to module scope in recursiveStructuredData#120031

Open
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/move-wrapper-component
Open

fix(coding-conventions): Move Wrapper component to module scope in recursiveStructuredData#120031
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/move-wrapper-component

Conversation

@sentry

@sentry sentry Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

The Wrapper component was previously defined inside the RecursiveStructuredData function component, causing a static-component-definitions violation. This pattern leads to React treating the component as a new identity on every render, resulting in unnecessary unmount/remount cycles and preventing React Compiler optimizations.

This change moves the Wrapper component definition to module scope and passes formattedObjectKey as a prop. This ensures Wrapper has a stable identity, resolving the coding convention error and improving component stability and potential for optimization.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes CODING-CONVENTIONS-36K

Comment @sentry <feedback> on this PR to have Autofix iterate on the changes.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant