⚠️ This is especially important if you're using the form helper in this way, as this will no longer work.
Making "form.hasErrors" work within the "preserveScroll" and "preserveState" callbacks took some ugly hacks, which caused unexpected issues, so we've reverted that change.