Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Last active April 5, 2019 10:01
Show Gist options
  • Save vzaidman/43df0b7e8b851e3d396c8cfb05698b01 to your computer and use it in GitHub Desktop.
Save vzaidman/43df0b7e8b851e3d396c8cfb05698b01 to your computer and use it in GitHub Desktop.
hook-fix.js- Track Redundant Re-renders That Caused By Hooks With "Why Did You Render" version 3
if (hookState.num !== newHookState.num){
setHookState(newHookState)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment