Skip to content

Releases: welldone-software/why-did-you-render

Using WeakMap instead of Map

02 Dec 12:51
Compare
Choose a tag to compare

Monkey patches functional components using functional component and not a class

02 Dec 08:04
Compare
Choose a tag to compare

This helps us to patch functional components "less" and prepares us for React Hooks.

Added the option to use "customName"

02 Dec 07:45
Compare
Choose a tag to compare
v2.3.0

version v2.3.0

Fixed for inline render functions

02 Dec 07:47
Compare
Choose a tag to compare

Turns out some libraries use render like this:

render = () => {

This means they don't have render in their class prototype.

This version can handle it just right.

Improved how we detect if a component is functional or class components

Monkey patch "render" instead of "componentDidUpdate"

02 Dec 07:51
Compare
Choose a tag to compare

In Next.js and we assume in other complicated cases, for some reason, inheritance of Component from another Component that inherits from React, doesn't work. Monkey patching render from the other hand does works.

Tested on a complex next.js project.