The QueryEditor component may be re-rendered a few times in a row with slightly different "now" timestamps. which causes the field suggestions to be fetched as many times.
This PR introduces a range similarity check in the useDatasourceFields hook, which filters out TimeRange updates if the changed values are within a minute of the known ones.
The QueryEditor component may be re-rendered a few times in a row with slightly different "now" timestamps. which causes the field suggestions to be fetched as many times.
This PR introduces a range similarity check in the useDatasourceFields hook, which filters out TimeRange updates if the changed values are within a minute of the known ones.