Skip to content

Entire PaymentsPage re-renders on every create-form keystroke #200

Description

@martinzhames

Category: performance

Problem

src/app/dashboard/payments/page.tsx holds form (the create-payment fields) in the same component that renders the full payments table. Every setForm({ ...form, [key]: value }) call on a keystroke re-renders the whole PaymentsPage, including the (potentially 20-row) table, with no React.memo anywhere in the file to short-circuit it.

Impact

On slower devices or with a fuller table, typing in the create-payment modal could feel janky since unrelated table rows re-render on every character typed.

Suggested fix

Extract the create-payment form into its own memoized child component, or move the table rows into a React.memo-wrapped subcomponent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions