Here is a v4 solution Throw Error message in lifecycle hook doesnt change the error message display in the UI - #8 by taka