mirror of https://gitlab.com/ecentrics/concordia
Apostolos Fanakis
4 years ago
4 changed files with 23 additions and 1 deletions
@ -0,0 +1,13 @@ |
|||
import React from 'react'; |
|||
import whyDidYouRender from '@welldone-software/why-did-you-render'; |
|||
import * as ReactRedux from 'react-redux/lib'; |
|||
|
|||
if (process.env.NODE_ENV === 'development') { |
|||
whyDidYouRender(React, { |
|||
trackHooks: true, |
|||
trackExtraHooks: [ |
|||
[ReactRedux, 'useSelector'], |
|||
], |
|||
trackAllPureComponents: true, |
|||
}); |
|||
} |
Loading…
Reference in new issue