The error transformer functions `getErrorObject` and `getErrorString` create new references on every re-render