PromucFlow_constructor/app/client/src/wdyr.ts
Satish Gandham 6098241403
Add performance tracker for resizable component (#5573)
* Add types for wdyr manually

* Add performance tracker for resizable component. Represent the hover performance.

* Pass down widget details to resizable component

* Remove debugging code.

Co-authored-by: Satish Gandham <satish@appsmith.com>
2021-07-06 14:51:46 +05:30

13 lines
443 B
TypeScript

/// <reference types="@welldone-software/why-did-you-render" />
// ^ https://github.com/welldone-software/why-did-you-render/issues/161
import React from "react";
if (process.env.NODE_ENV === "development") {
const whyDidYouRender = require("@welldone-software/why-did-you-render");
whyDidYouRender(React, {
trackAllPureComponents: false,
trackExtraHooks: [[require("react-redux/lib"), "useSelector"]],
});
}
export default "";