2022-06-01 00:33:59 +02:00
|
|
|
/// <reference types="@welldone-software/why-did-you-render" />
|
|
|
|
|
2021-01-07 19:13:09 +01:00
|
|
|
import React from 'react'
|
|
|
|
import log from './log'
|
|
|
|
|
|
|
|
const dev = () => {
|
|
|
|
if (__DEV__) {
|
2022-08-19 01:58:17 +02:00
|
|
|
// log('log', 'devs', 'initializing wdyr')
|
|
|
|
// const whyDidYouRender = require('@welldone-software/why-did-you-render')
|
|
|
|
// whyDidYouRender(React, {
|
|
|
|
// trackHooks: true,
|
|
|
|
// hotReloadBufferMs: 1000
|
|
|
|
// })
|
2021-01-07 19:13:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default dev
|