score:0

  // input value reset - please note, that I cannot use dataSourceValue as a dependency here
  // because I don't want to lose the value entered by user - only when he explicitly changes the data source
  useEffect(() => {
    setFieldValue(dataSourceValue);
  }, [dataSource]);

Related Query

More Query from same tag