resolveProps is a powerful tool for changing props run-time. In this example, we will present how to change props according to a value of different field.

To achieve that you need to rerender the changing field on each form change. That can be done via two ways:

Using subscription is a simple way how to let form to be rerendered each time values changed. However, this solution can bring a performance hit when used in large forms with tens of fields.

You can wrap the changing field in FormSpy component to optimize the rendering. Using FormSpy the only nested fields will be rerendered.