You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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