Replies: 3 comments
-
This is more or a Typescript problem than Form problem. |
Beta Was this translation helpful? Give feedback.
-
I know it is a typescript problem but I want to find an alternative way to solve this problem. Here a simple example that doesn't throw the What I would like to do is pass only the needed fields to the component but I don't know:
|
Beta Was this translation helpful? Give feedback.
-
Fundamental thing here is, you do not pass form instance to reuse it on different forms, It is instance of one form. this is example of creating wrapper component for multiple forms to use and it looks similar to what you are trying to achieve. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have some sections of ui (that wraps some form fields) that are the same on both create and edit page.
Forms on create and edit page are different and I would like to be able to accept both forms (or better if I can pass only the required fields).
I tried with:
but typescript doesn't like it:
Type instantiation is excessively deep and possibly infinite.
Beta Was this translation helpful? Give feedback.
All reactions