wip: avoid including full error type strings in prod
This commit is contained in:
parent
a3b0f2bd1c
commit
1c6ecf4144
@ -88,7 +88,8 @@ export function handleError(
|
||||
errorCapturedHooks[i](
|
||||
err,
|
||||
instance && instance.renderProxy,
|
||||
ErrorTypeStrings[type]
|
||||
// in production the hook receives only the error code
|
||||
__DEV__ ? ErrorTypeStrings[type] : type
|
||||
)
|
||||
) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user