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
Any exception that gets thrown inside MomentumRoot's _init() results in:
The following assertion was thrown building FutureBuilder<bool>(dirty, state:_FutureBuilderState<bool>#9e6fe):8Failed assertion: boolean expression must not be null
The dev can never understand which one of the init methods threw which exception. This especially becomes painful when you blind code multiple controllers and then run the app to see if they are working as you envisioned.
Adding a try...catch inside _init() and then logging the stack-trace would probably save a bunch of time for devs who do the above.
The text was updated successfully, but these errors were encountered:
hwnprsd
pushed a commit
to hwnprsd/momentum
that referenced
this issue
Jul 23, 2020
Any exception that gets thrown inside
MomentumRoot
's_init()
results in:The dev can never understand which one of the init methods threw which exception. This especially becomes painful when you blind code multiple controllers and then run the app to see if they are working as you envisioned.
Adding a try...catch inside
_init()
and then logging the stack-trace would probably save a bunch of time for devs who do the above.The text was updated successfully, but these errors were encountered: