Skip to content

Fix the three setState-in-effect lint errors #11

Open

Description

@jessebubble

pnpm lint reports three errors from React's rule against setting state synchronously inside an effect:

components/events-popup.tsx       18:7
components/hero-bridge.tsx       235:5
components/logo-context-menu.tsx  42:7
  error  Calling setState synchronously within an effect can trigger cascading renders

Each needs a look at what the effect is for. Often the state can be computed during render, or set in the event handler that causes the change, instead of in an effect. React's guide You Might Not Need an Effect covers the patterns.

Not a first issue: each fix needs care not to change behavior (the popup's timing, the hero's animation). One PR per component is ideal, with a note on how you checked the behavior didn't change.

Activity

  1. added
    help wanted
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions