Skip to content

front: react(refs) during-render warnings in staff-users/$userId-edit.tsx #1301

Description

@radandevist

Follow-up from the adversarial review of #1295 (hy3, round 1).

apps/front/src/routes/authed/staff/staff-users/$userId-edit.tsx emits two react(refs) during-render warnings (refs read/written during render). This is shipped code, out of scope of #1295, and is a real defect class (React Compiler / StrictMode unsafe).

Expected: move the ref access out of render (effect or event handler), add a test that fails on a during-render ref access (react-doctor/oxlint react rule as error for this file), paired red/green proof in the PR.

Part of #1161 (merged via #1295).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions