{"action":"closed","issue":{"url":"https://api.github.com/repos/traveloka/react-schema/issues/3","repository_url":"https://api.github.com/repos/traveloka/react-schema","labels_url":"https://api.github.com/repos/traveloka/react-schema/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/traveloka/react-schema/issues/3/comments","events_url":"https://api.github.com/repos/traveloka/react-schema/issues/3/events","html_url":"https://github.com/traveloka/react-schema/issues/3","id":355000354,"node_id":"MDU6SXNzdWUzNTUwMDAzNTQ=","number":3,"title":"[Form] validateOnChange & revalidateOnError options","user":{"login":"Jekiwijaya","id":6567775,"node_id":"MDQ6VXNlcjY1Njc3NzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6567775?v=4","gravatar_id":"","url":"https://api.github.com/users/Jekiwijaya","html_url":"https://github.com/Jekiwijaya","followers_url":"https://api.github.com/users/Jekiwijaya/followers","following_url":"https://api.github.com/users/Jekiwijaya/following{/other_user}","gists_url":"https://api.github.com/users/Jekiwijaya/gists{/gist_id}","starred_url":"https://api.github.com/users/Jekiwijaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jekiwijaya/subscriptions","organizations_url":"https://api.github.com/users/Jekiwijaya/orgs","repos_url":"https://api.github.com/users/Jekiwijaya/repos","events_url":"https://api.github.com/users/Jekiwijaya/events{/privacy}","received_events_url":"https://api.github.com/users/Jekiwijaya/received_events","type":"User","site_admin":false},"labels":[{"id":1019684922,"node_id":"MDU6TGFiZWwxMDE5Njg0OTIy","url":"https://api.github.com/repos/traveloka/react-schema/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":1038760718,"node_id":"MDU6TGFiZWwxMDM4NzYwNzE4","url":"https://api.github.com/repos/traveloka/react-schema/labels/react-schema-form","name":"react-schema-form","color":"ea956e","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-29T05:17:41Z","updated_at":"2018-08-30T10:48:35Z","closed_at":"2018-08-30T10:48:35Z","author_association":"COLLABORATOR","body":"```\r\nconst Form = createForm({\r\n  email: {\r\n    component: Input,\r\n    rules: [required],\r\n    validateOnChange: true\r\n    revalidateOnError: true\r\n  },\r\n  name: {\r\n    component: Input,\r\n    rules: [required],\r\n    validateOnChange: {\r\n      debounce: 300,\r\n    }\r\n    revalidateOnError: {\r\n      debounce: 1000\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n```typescript\r\ntype ValidateEventOption = {\r\n  debounce: number\r\n}\r\n\r\ntype ValidateOption = boolean | ValidateEventOption;\r\n\r\nextend type Field {\r\n  revalidateOnError: ValidateOption,\r\n  validateOnChange: ValidateOption\r\n}\r\n```"}}
{"actor":{"display_login":"Jekiwijaya"}}