-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
In order to let the JavaScript compiled to be cached the IDs that the form generation creates needs to be deterministic.
Feature: Deterministic IDs
As an implementor
I want generated IDs for the form and scripts to be the same with the same content types
So that I can cache the results to improve performance of my application
Scenario: Generate
Given that the same type definition is passed in to the form render
When an input's ID gets generated
Then the same IDs should be generated each time that type is run through the form render
Scenario: JavaScript
Given that generated IDs are deterministic
And that some forms may have repeatable IDs
And that JavaScript may not be generated with each form
When form JavaScript instantiates
Then it should find all repeatable IDs based on the deterministic ID
And it should automatically set up validation for each repeatable IDDeterministic IDs
- Generate
- JavaScript
Reactions are currently unavailable