You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
All the routers currently run logging useEffect even in production environment.
Refactor so that it only runs when REACT_APP_LOG_LEVEL=debug to avoid unnecessary re-renderring.
For example:
useEffect(() => {
// TODO: wrap this code block to be excecuted only on debugging
const unlisten = history.listen((location, action) => {
logger.debug('TriggersRoutes -> location', location)
logger.debug('TriggersRoutes -> action', action)
})
return (): void => {
unlisten()
}
}, [history])
The text was updated successfully, but these errors were encountered:
All the routers currently run logging useEffect even in production environment.
Refactor so that it only runs when REACT_APP_LOG_LEVEL=debug to avoid unnecessary re-renderring.
For example:
The text was updated successfully, but these errors were encountered: