mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
14 lines
554 B
TypeScript
14 lines
554 B
TypeScript
/// <reference types="@welldone-software/why-did-you-render" />
|
|
import React from 'react'
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
// The library should NEVER be used in production because it slows down React
|
|
const whyDidYouRender = require('@welldone-software/why-did-you-render')
|
|
// Default to not tracking all components, add whyDidYouRender = true to component functions you want to track
|
|
whyDidYouRender(React, {
|
|
trackAllPureComponents: false,
|
|
// trackHooks: true,
|
|
// trackExtraHooks: [[ReactRedux, 'useSelector']],
|
|
})
|
|
}
|