Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an async
__unstablePreSavePost
hook; resolving with false preve…
…nts saving (#58022) * Add an async `__unstablePreSavePost` hook; resolving with false prevents saving * Simplify preSave check * Filter edits & enable throwing Error in `__unstablePreSavePost` filter * Pass Promise.resolve( edits ) instead of edits * Move REQUEST_POST_UPDATE_START to before preSave async filter * Update saveEntityRecord error handling to use try/catch * Use explicit false check for error * reduce changes, test functionality, don’t pass data to filter * whitespace Unlinked contributors: aduth, lex127, audiovisuel-uqam, eballeste, jenilk, zhitaryksergey, christianMiguez. Co-authored-by: adamsilverstein <[email protected]> Co-authored-by: jsnajdr <[email protected]> Co-authored-by: ockham <[email protected]> Co-authored-by: sadmansh <[email protected]> Co-authored-by: sc0ttkclark <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: gziolo <[email protected]> Co-authored-by: acafourek <[email protected]> Co-authored-by: marcwieland95 <[email protected]> Co-authored-by: margolisj <[email protected]> Co-authored-by: noisysocks <[email protected]>
- Loading branch information