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
If you pass an env to {{exclaim-ui}} that does not include non_existent, then there will be an error when the end-user fills in the rendered <input>.
EmberError {stack: "Error: Property set failed: object in path "__env_…t http://localhost:4200/assets/vendor.js:38818:45", description: undefined, fileName: undefined, lineNumber: undefined, message: "Property set failed: object in path "__env__.non_existent" could not be found or was destroyed.", …}
While there may be other ways to mitigate this, the solution proposed here is for {exclaim-ui}} to expose an onError property.
It would be called with at least the raised Error. Maybe there are other useful params too.
Then client code can do something appropriate when that happens, such as rendering a more instructional message in its own UI.
The text was updated successfully, but these errors were encountered:
An error that comes up sometimes when defining Exclaim UIs is a
$bind
referencing a key that does not exist in the givenenv
.For example, if your declared UI is the following:
If you pass an
env
to{{exclaim-ui}}
that does not includenon_existent
, then there will be an error when the end-user fills in the rendered<input>
.EmberError {stack: "Error: Property set failed: object in path "__env_…t http://localhost:4200/assets/vendor.js:38818:45", description: undefined, fileName: undefined, lineNumber: undefined, message: "Property set failed: object in path "__env__.non_existent" could not be found or was destroyed.", …}
While there may be other ways to mitigate this, the solution proposed here is for
{exclaim-ui}}
to expose anonError
property.It would be called with at least the raised Error. Maybe there are other useful params too.
Then client code can do something appropriate when that happens, such as rendering a more instructional message in its own UI.
The text was updated successfully, but these errors were encountered: