Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Support middleware in getValue #405

Open
sandhilt opened this issue May 24, 2021 · 1 comment
Open

Support middleware in getValue #405

sandhilt opened this issue May 24, 2021 · 1 comment

Comments

@sandhilt
Copy link

What would you like to be added:
Allow add an middleware in get, set or reset value.

path?: undefined

Why is this needed:
Sometimes, we need convert some value before submit event is triggered, so if change getValue method, we need set setValue and resetValue. It's annoying.

@TriStarGod
Copy link

TriStarGod commented May 27, 2021

@sandhilt Doesn't registerField already provide this? An example is found at https://unform.dev/quick-start/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants