- debugsy
- use cases
What you can debug with debugsy
Use cases for debugsy, an in-app React debugging panel: each page takes one job, like finding why a component re-rendered, step by step.
- use case · How to debug state changes in ReactDebug a state change in React: see when a value changed, what it changed to and which action did it, with DevTools, a hook, or debugsy.
- use case · How to check the React render count of a componentCheck a React render count in the DevTools Profiler, with a useRef counter or the Profiler component, or with debugsy's useRenderTracker.
- use case · How to check which useEffect dependency changedCheck which useEffect dependency changed in React: compare the array with Object.is, paste a small hook, or log it with debugsy's useWhyDidYouUpdate.
- use case · How to find what's causing a React component to re-renderThree ways to find what causes a re-render in React: the DevTools Profiler, a small hook you paste in, and debugsy's useWhyDidYouUpdate.