wip: avoid including full error type strings in prod

This commit is contained in:
Evan You 2019-08-31 16:43:02 -04:00
parent a3b0f2bd1c
commit 1c6ecf4144

View File

@ -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