Debug label completion
MiroslavPetrik opened this issue ยท comments
I've noticed that there are some atoms without labels, so I would make these improvements to debugging:
-
the
baseValueAtom
is internal in fieldAtom
I would mark it asdebugPrivate = true
-
the
field
itself (fieldAtom return value) is unlabelled
This can be easily labelledfield/${config.name ?? field}
, The value displays the structure of the nested atoms, which is good -
the
formAtom
itself is unlabelled
Like 2. I would label ifform/${formAtom}
, here we don't have a config.name like in fields, so the key will be useful to distinguish multiple mounted form atoms. -
for the internal atoms of formAtoms, we are missing scoping by the atom key
Currently we haveform/values
,form/fields
labels, but these can be scoped by atom keyform/${formAtom}/value
to again separate multiple mounted forms. -
The labeling of field atoms should be
field/{config.name}/${atomName}
instead of the currentfield/${atomName}/${config.name}
This plays better with the devtools, where you can filter by prefix, so enterginfield/username
will filter only the internals of the username fieldAtom.
๐ This issue has been resolved in version 3.2.5 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐