Skip to content

easy way to wrap Field component as a child component? #1103

Answered by harry-whorlow
heecheon92 asked this question in Q&A
Discussion options

You must be logged in to vote

@heecheon92 @piotrpalek the short answer is because the functionality isn't finished yet.

Theres an open PR #825 that will allow you to create re-usable components. But, it's not merged yet, theres a few internal types that need to be exposed, so unless you want to recreate them in your local code base you'll have to wait.

The issue with abstracting the children like you have is the same issue I had here, you run into typing issues, and this only becomes more of an issue the more you have things like validators, listeners, and other functionality.

But the maintainers are working on it, in-face it's the last checkmark on the v1.0 checklist.

Hope this helps 🤟

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by heecheon92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants