Workiva / react-dart

Dart Bindings for React JS
BSD 2-Clause "Simplified" License
412 stars 67 forks source link

CPLAT-10894 Rethrow and print registerComponent/registerComponent2 errors #261

Closed smaifullerton-wk closed 4 years ago

smaifullerton-wk commented 4 years ago

Recommended review: Whitespace changes only

Problem

Currently, registerComponent calls that throw have their errors swallowed by React if they occur in the call stack of a component render (due to the render triggering lazy evaluation of a top-level factory variable).

This can commonly happen if:

Changes:

QA

smaifullerton-wk commented 4 years ago

@greglittlefield-wf thanks, ready