This file contains hidden or 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
| import { useEffect, useRef } from 'react'; | |
| /** | |
| * A small utility hook to help figure out what is changing and causing | |
| * re-renders. Add it to the component you're investigating and pass in a object | |
| * of the values that you think might be changing. | |
| * | |
| * Ex: useWhatChanged({ someProp, someOtherProp }); | |
| */ | |
| export function useWhatChanged(props) { |