Skip to content

Conversation

@ddelemeny
Copy link
Collaborator

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.

@ddelemeny ddelemeny merged commit ad87ff5 into main May 9, 2024
@ddelemeny ddelemeny deleted the ddelemeny/fix-fieldcaps-spam branch May 20, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants