Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.2.0
-
None
Description
Currently, the Form component will create a ValidationTracker instance if one does not already exist when rendering or when handling a form submission. Since, typically, it is using the defaultValidator property, this creates a session to store the ValidationTracker.
A little more work can yield a ValidationTracker that doesn't uĻdate the Form.validator property until an error is recorded. If no errors are recorded for the Form during a submission, then the ValidationTracker is discarded anyway ... this change will just ensure that no session is created unless the tracker is being kept around (for a re-render of the page, to present errors to the user).