This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ever wondered what triggered a rerendering in React? | |
* Who was the killer? Which dependency got updated? | |
* This is a very stupid little code that can help you debug the issue. | |
*/ | |
import { useRef } from 'react'; | |
type DependenciesObject = { | |
[dependencyName: string]: any; |