why-did-you-render

why-did-you-render by Welldone Software monkey patches React to notify you about potentially avoidable re-renders. (Works with React Native as well.)

MIT License

Downloads
1.8M
Stars
10.8K
Committers
37

Bot releases are hidden (Show)

why-did-you-render -

Published by vzaidman about 4 years ago

  • fixed owner reasons bug in strict mode, also added a test
  • updated all dev packages
why-did-you-render -

Published by vzaidman about 4 years ago

why-did-you-render -

Published by vzaidman about 4 years ago

why-did-you-render -

Published by vzaidman about 4 years ago

  • No longer tracks re-renders as a result of useCallback invalidation due to deps changes (fixes #46)
    • This fix was brought to you by the one and only @Hypnosphi :)
why-did-you-render - Version 5 alpha

Published by vzaidman about 4 years ago

why-did-you-render - Improved development

Published by vzaidman about 4 years ago

  • Updated packages
  • Added E2E tests (Cypress)
  • Added CI (Travis CI)
  • Running Unit tests, Lint, Audit, and E2E tests in CI
why-did-you-render -

Published by vzaidman about 4 years ago

  • small typescript update. thanks @igorrmotta!
why-did-you-render -

Published by vzaidman over 4 years ago

  • Fixed "track owner reasons" for cloned elements. Thanks @Hypnosphi !
  • Updated all dependencies including a security update for lodash
why-did-you-render -

Published by vzaidman over 4 years ago

fixed WDYR trying to track untrackable React elements which resulted in a redundant console error to the console. thanks @MaffooBristol

why-did-you-render -

Published by vzaidman over 4 years ago

fixed handling of hook state change during render. thanks @Hypnosphi!!

why-did-you-render -

Published by vzaidman over 4 years ago

  • minor docs improvements
  • minor inner code efficiency improvements
  • fixed a bug where broken code like React.memo(null) raised a console error regarding WDYR failure.
  • updated all dev dependencies
why-did-you-render -

Published by vzaidman over 4 years ago

fixed a false positive regarding React elements with several children with different props:
https://github.com/welldone-software/why-did-you-render/issues/117

why-did-you-render -

Published by vzaidman over 4 years ago

fixed false positive regarding different react elements (based on their props) reported as deep equlas

why-did-you-render -

Published by vzaidman over 4 years ago

I came across situations where a component is re-rendered
because a property that holds a huge object deep equals to it's previous version is passed to it
(after a request to the API that returns the same result)

this caused my console to almost crash with tracks of every single nested property of it.

so now we would:

  • only report the topmost object as being deepEqulas while ignoring what's inside and how much of it is different / deepEquls.
why-did-you-render -

Published by vzaidman over 4 years ago

fixed a certain error when using with Preact.

Preact is not officially supported by the library but seems to work with it.

why-did-you-render -

Published by vzaidman over 4 years ago

why-did-you-render -

Published by vzaidman over 4 years ago

Improved readme to better explain how to add the library to projects without breaking hot reload

why-did-you-render -

Published by vzaidman over 4 years ago

added logOwnerReasons by @Hypnosphi.

You can read about it here:
https://github.com/welldone-software/why-did-you-render#logownerreasons

added support to Sets tracking by @jfrumar-infinitusai

why-did-you-render -

Published by vzaidman over 4 years ago

added types of logOwnerReasons to the typescript file

why-did-you-render -

Published by vzaidman over 4 years ago

added logOwnerReasons by @Hypnosphi.

You can read about it here:
https://github.com/welldone-software/why-did-you-render#logownerreasons