Skip to content

Adds callback function to initial cluster request

Filipa Lacerda requested to merge 39639-clusters-poll into master

What does this MR do?

Adds callback function to initial cluster request in non visible page, currently although we are doing the first request we are not showing anything to the user.

The goal is to:

  • Poll only when the page is visible
  • In case the user opens the page in a new non visible tab, make the first request without polling
  • Stop polling when page is not visible
  • Restart polling when page becomes visible again

We were doing the above, but we were not updating the UI on the first request when the page was not visible.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #39639 (closed)

/cc @MadLittleMods

Edited by Filipa Lacerda

Merge request reports