Type-Safe name prefix
It consists of a couple of groups of fields.
Each group renders many dynamic fields.
Dynamic field takes care of rendering an appropriate input based on some value in payload.
Now what I need is a type-safe way to prefix the field name, so that I can take care of connecting the dynamic field inputs to the form.
I mention prefix, because my Dynamic Field shouldn’t know about an arbitrary grouping it’s rendered in.
When I’m rendering it, I need to provide the specific path to the
name:I’m looking for something like this, but typesafe, so I could take care of rendering individual fields in Dynamic Input, without needing to know what context (group) I’m rendering it in:
Thansk for all your help!