Skip to content

Frontend 3: Replace withValidation HOC with useValidation hook#9396

Open
camd wants to merge 1 commit intocamd/react-router-7from
camd/upgrade-higher-order-components
Open

Frontend 3: Replace withValidation HOC with useValidation hook#9396
camd wants to merge 1 commit intocamd/react-router-7from
camd/upgrade-higher-order-components

Conversation

@camd
Copy link
Copy Markdown
Collaborator

@camd camd commented Apr 13, 2026

Removes the last remaining Higher-Order Component in the frontend by converting withValidation into a useValidation hook plus a shared <ValidationGate> component. Updates the three consumers (AlertsView, TestsView, InfraCompareView) to call the hook and wrap their subtree in the gate, and converts ErrorMessages from a class component to a functional component along the way.

Removes the last remaining Higher-Order Component in the frontend by
converting `withValidation` into a `useValidation` hook plus a shared
`<ValidationGate>` component. Updates the three consumers (AlertsView,
TestsView, InfraCompareView) to call the hook and wrap their subtree in
the gate, and converts `ErrorMessages` from a class component to a
functional component along the way.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@camd camd self-assigned this Apr 13, 2026
@camd camd changed the title Replace withValidation HOC with useValidation hook Frontend 3: Replace withValidation HOC with useValidation hook Apr 13, 2026
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