#Custom UI field causing infinite re-render

2 messages · Page 1 of 1 (latest)

supple topaz
#

I'm trying to create a UI field which displays a chart representing the current values of the other fields in its group. I'm trying to use useFormFields to select the values of the UI field's siblings. The issue is whenever I use that hook inside the UI field's admin.components.Field config my custom UI field re-renders repeatedly.

I've created a GH Discussion for this as well: https://github.com/payloadcms/payload/discussions/1723

Any pointers would be greatly appreciated, thanks!

GitHub

I'm trying to create a group field with a set of sliders to control numerical values and a ui field do display the result of these values in a chart that updates dynamically as you change t...

lucid crest
#

Responded in GH discussion!