mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-27 01:50:44 +00:00
Creating a log boundaries utility for wrapping react errors
This commit is contained in:
parent
916b38c589
commit
6bcc351fa2
12
src/utils/logBoundaries.js
Normal file
12
src/utils/logBoundaries.js
Normal file
@ -0,0 +1,12 @@
|
||||
// @flow
|
||||
export type Info = {
|
||||
componentStack: string,
|
||||
}
|
||||
|
||||
export const logComponentStack = (error: Error, info: Info) => {
|
||||
// eslint-disable-next-line
|
||||
console.log(error)
|
||||
// eslint-disable-next-line
|
||||
console.log(info.componentStack)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user