Open PanoramicPanda opened 5 years ago
Uriah and I were discussing a few things about this.
Essentially a more indepth case is the page doesn't do anything to tell you WHY it failed to navigate away from itself.
One of the lowest hanging fruits would be checking if fields were empty. Potential solutions we discussed:
Add an optional flag to fields, required: true
, that makes the page tell you if this field was empty if the error is hit.
Just dump all empty or default value'd fields alongside the error message if they were enabled.
Router currently throws
RuntimeError: ERROR: The Application is on the wrong page! OZ expected that page to be [Page_Y] but found [Page_X]!
whenever it lands on the improper page.While still technically a routing issue, a more verbose/different error should likely be thrown when
Page_X
is the same page you just tried to leave.