Refactor Create Statement Diagnostics Modal to not use refs #74221
Labels
A-sql-console-general
SQL Observability issues on the DB console spanning multiple areas. Includes Cockroach Cloud Console
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
no-issue-activity
X-stale
Is your feature request related to a problem? Please describe.
We currently use a ref in the
ActivateStatementDiagnosticsModal
component. However, refs are an anti-pattern in React, and should not be used.Describe the solution you'd like
Refactor
ActivateStatementDiagnosticsModal
and its usages to use data and props instead of refs. This modal is currently being used on the Statements Table and the Statements Details Page Diagnostics View.Additional context
Follow-up from discussion on #74112
Epic CRDB-6619
Jira issue: CRDB-11978
The text was updated successfully, but these errors were encountered: