1
0
mirror of https://github.com/tooot-app/app synced 2025-04-19 12:47:31 +02:00
tooot/src/startup/dev.ts
2021-01-28 00:41:53 +01:00

16 lines
325 B
TypeScript

import React from 'react'
import log from './log'
const dev = () => {
if (__DEV__) {
log('log', 'devs', 'initializing wdyr')
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackHooks: true,
hotReloadBufferMs: 1000
})
}
}
export default dev