tooot/src/startup/dev.ts

18 lines
390 B
TypeScript
Raw Normal View History

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__) {
2021-01-16 00:00:31 +01: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