add why-did-you-render

This commit is contained in:
Martti Malmi
2024-01-08 10:27:26 +02:00
parent 5db33314a8
commit 26a3e95086
11 changed files with 36 additions and 14 deletions

8
packages/app/src/wdyr.ts Normal file
View File

@ -0,0 +1,8 @@
import whyDidYouRender from "@welldone-software/why-did-you-render";
import * as React from "react";
if (import.meta.env.DEV) {
whyDidYouRender(React, {
trackAllPureComponents: true,
});
}