qmetrics.net

Why Did You Render

React render debugging for avoidable re-renders

Why Did You Render is no longer maintained: its repository is archived. Look at the maintained alternatives below before choosing it.

A Welldone Software library that patches React in development to log potentially unnecessary component re-renders. It also supports React Native workflows when wired through Babel and a first-import setup file.

Overview

Why Did You Render hooks into React during development and reports when components re-render in ways that might be avoidable. A common pattern it highlights is passing freshly created objects—such as inline style objects—to memoized children, which forces updates even when values look the same.

You enable it by importing a small setup module before the rest of the application, configuring Babel for automatic JSX where required, and choosing which components to watch. You can opt into tracking all pure components, mark individual components manually, filter by display name, and tune console output colors, grouping, and custom notifiers.

Hook usage is supported by default, and you can extend tracking to custom hooks such as Redux selectors through extra hook registration. Options cover owner re-render reasons, logging on legitimate prop or state changes, hot-reload buffering, and include or exclude rules.

It is intended for development only: the authors warn that it slows React noticeably, monkey-patches internals, and may behave unexpectedly in production. They also note incompatibility concerns with React Compiler and that not every re-render is worth fixing without measuring with React DevTools Profiler.

Key features

  • Monkey-patches React for re-render notifications
  • Tracks memo and PureComponent re-renders
  • Per-component manual tracking flag
  • Hook change tracking with extra hooks
  • Include and exclude filters by display name
  • Custom console notifier and styling
  • Owner re-render reason logging
  • React Native Babel plugin support

Use cases

  • Finding avoidable React re-renders in development
  • Debugging why a specific component updates
  • Tracing custom hook-driven updates
  • Tuning memoized component props
  • React Native performance investigation

Tags

Similar software

AgentOps

Open-source observability SDK for AI agents

AgentOps is a Python SDK that monitors AI agents, tracks LLM costs, and records sessions for debugging. It plugs into common agent frameworks and model providers.

  • Session replay analytics
  • LLM cost tracking
  • Framework integrations
PythonDetails →
★ 6k⟳ 5 months agoMIT

Clockwork

In-browser PHP application runtime inspector

Clockwork is a PHP development library that records request, command, queue, and test runtime details and exposes them in a browser UI. It captures queries, logs, events, jobs, views, and performance data.

  • HTTP request profiling data
  • Database and cache query logging
  • Redis command and event capture
PHPDetails →
★ 5.9k⟳ 3 months agoMIT

Django Silk

Live profiling and request inspection for Django

Silk is a Django package that records HTTP requests, SQL queries, and optional Python profiles, then exposes them in a /silk/ web UI for debugging slow pages and queries.

  • HTTP request and SQL capture
  • Web UI at /silk/
  • Optional cProfile per request
PythonDetails →
★ 5k⟳ 1 month agoMIT

Micrometer

Vendor-neutral JVM application observability facade

Micrometer instruments JVM applications with dimensional metrics and tracing through a neutral API. You choose Prometheus, Datadog, OTLP, and many other backends at deploy time.

  • Vendor-neutral metrics API
  • Dimensional meters
  • Many backend registries
JavaDetails →
★ 4.9k⟳ todayApache-2.0

Log Viewer

Browser log viewer package for Laravel applications

Laravel package that adds a web UI to read, search, and filter application and server log files in the browser.

  • Laravel storage log browsing
  • Horizon, web server, and service logs
  • Search and level filtering
PHPWebDetails →
★ 4.4k⟳ 5 months agoMIT

KOOM

Android online memory monitoring for OOM and heap leaks

KOOM is Kwai's toolkit for high-performance online memory monitoring on mobile. It reports when out-of-memory-related problems occur and is available for Android apps.

  • Online OOM and memory issue reporting
  • Java heap leak monitoring module
  • Native heap leak monitoring
C++AndroidDetails →
★ 3.4k⟳ 1 month agoApache-2.0 · open core