React

Fix React hooks, state management, performance issues, SSR, Next.js, production bugs, and enterprise React problems

Medium

Fix Infinite Re-render Loop Caused by useEffect Dependency

useEffect runs infinitely because dependency array includes an object that changes on every render.

Medium

Fix Memory Leak from Unsubscribed Event Listeners

Event listeners added in useEffect are never removed, causing memory leaks when component unmounts.

Medium

Fix Stale Closure in useState Callback

State updates use stale values because setState callback receives old state, not current.

Hard

Fix Race Condition in Async Data Fetching

Multiple rapid requests can return out of order, causing UI to show wrong data.

Medium

Fix Performance Issue from Unnecessary Re-renders

Child components re-render on every parent state change even when props don't change.

Hard

Fix Context Re-render Issue Causing Performance Problems

All consumers re-render when any context value changes, even if they only use one value.

Hard

Fix Next.js SSR Hydration Mismatch Error

Server-rendered HTML doesn't match client render, causing hydration errors.

Medium

Fix useCallback Dependency Array Causing Stale Closures

useCallback dependencies are missing, causing stale closure values.

Medium

Fix Expensive Computation Running on Every Render

Heavy computation runs on every render instead of being memoized.

Easy

Fix Missing Key Prop Causing Reconciliation Issues

List items rendered without unique keys cause React reconciliation problems and performance issues.

Medium

Fix State Update Batching Issue Causing Multiple Renders

Multiple setState calls trigger separate renders instead of being batched.

Medium

Fix useEffect Running on Every Render Due to Missing Dependencies

useEffect has missing dependencies, causing it to run unnecessarily or miss updates.

Medium

Fix Prop Drilling Causing Unnecessary Re-renders

Props are passed through multiple components unnecessarily, causing prop drilling and re-renders.

Easy

Fix Form Input Not Controlled Causing Uncontrolled Component Warning

Input value is not controlled by state, causing uncontrolled component warnings.

Hard

Fix Error Boundary Not Catching Async Errors

Error boundaries don't catch errors in async operations, causing unhandled errors.

Easy

Fix useRef Not Persisting Across Re-renders

useRef value is reset on re-render because ref object is recreated.

Hard

Fix Concurrent Mode Issue with State Updates

State updates in concurrent mode cause race conditions and stale closures.

Medium

Fix Portal Not Rendering Outside DOM Hierarchy

Modal or tooltip needs to render outside component tree but is constrained by parent.

Easy

Fix Suspense Boundary Not Handling Loading States

Suspense boundary doesn't show loading state while data is being fetched.

Medium

Fix useLayoutEffect vs useEffect Timing Issue

Visual flicker occurs because DOM updates happen after paint when useEffect should use useLayoutEffect.

Medium

Fix Custom Hook Not Following Rules of Hooks

Custom hook violates rules of hooks by calling hooks conditionally or in loops.

Medium

Fix Server Component Importing Client Component Incorrectly

Next.js server component tries to import client component without 'use client' directive.

Medium

Fix React Query Cache Not Invalidating on Mutation

Cache doesn't update after mutation, showing stale data to users.

Easy

Fix Zustand Store Not Persisting to LocalStorage

Zustand store state is lost on page refresh because it's not persisted.

Medium

Fix React Router Navigation Blocking on Unsaved Changes

User can navigate away with unsaved changes because navigation isn't blocked.