Web: Enabled wdy in People and Files

This commit is contained in:
Alexey Safronov 2021-02-18 12:55:37 +03:00
parent f452ae2eae
commit a59ffc0a81
5 changed files with 24 additions and 2 deletions

View File

@ -1,4 +1,4 @@
//import "./wdyr";
import "./wdyr";
import React from "react";
import ReactDOM from "react-dom";

View File

@ -4,6 +4,7 @@
"private": true,
"homepage": "/products/people",
"dependencies": {
"@welldone-software/why-did-you-render": "^4.2.5",
"asc-web-common": "file:../../../packages/asc-web-common",
"asc-web-components": "file:../../../packages/asc-web-components",
"connected-react-router": "6.6.1",

View File

@ -1,3 +1,5 @@
import "./wdyr";
import React from "react";
import ReactDOM from "react-dom";
import "./custom.scss";

View File

@ -0,0 +1,12 @@
import React from "react";
if (process.env.NODE_ENV === "development") {
const whyDidYouRender = require("@welldone-software/why-did-you-render");
whyDidYouRender(React, {
trackAllPureComponents: true,
collapseGroups: true,
//trackExtraHooks: [
// [ReactRedux, 'useSelector']
//]
});
}

View File

@ -2071,6 +2071,13 @@
"@webassemblyjs/wast-parser" "1.9.0"
"@xtuc/long" "4.2.2"
"@welldone-software/why-did-you-render@^4.2.5":
version "4.3.2"
resolved "https://registry.yarnpkg.com/@welldone-software/why-did-you-render/-/why-did-you-render-4.3.2.tgz#db1c700df1729402f2ceacf05cebd72dca30f1af"
integrity sha512-pzaFmUUH+FjbsDgcMB1xNPncIaxibvo0FLbGySLIh+v+7Bp5pqSJFO6zlqo4orPLm3nAdYEgL2vrlj8befoypg==
dependencies:
lodash "^4"
"@xtuc/ieee754@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"
@ -7463,7 +7470,7 @@ lodash@4.17.19:
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
"lodash@>=3.5 <5", lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.5, lodash@~4.17.10:
"lodash@>=3.5 <5", lodash@^4, lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.5, lodash@~4.17.10:
version "4.17.20"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==