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
In an effort to make Mithril API signatures more consistent and defer to standard contracts where possible, I propose we ensure all APIs that allow for authors to provide async resolution conditions rely on returning Promises.
This is already the case for request resolution and onmatch, and AFAICT the only outstanding API is onbeforeremove, which can then become more consistent with onbeforeupdate, whereby the signature will fall inline with the other lifecycle methods and have special concerns dictated by return value.
The text was updated successfully, but these errors were encountered:
In an effort to make Mithril API signatures more consistent and defer to standard contracts where possible, I propose we ensure all APIs that allow for authors to provide async resolution conditions rely on returning Promises.
This is already the case for request resolution and onmatch, and AFAICT the only outstanding API is onbeforeremove, which can then become more consistent with onbeforeupdate, whereby the signature will fall inline with the other lifecycle methods and have special concerns dictated by return value.
The text was updated successfully, but these errors were encountered: