All datatable listings get reloaded on every tab switch with multiple data tables

Description

If you have multiple data tables on a single page:

  • The data for all tables gets loaded on initial page load (including the hidden tabs).

  • When switching tabs, the new (now visible) and previous (now hidden) tables both get refreshed

If you have several tables on a page, this will cause a performance issue.

Solution:

Only load data for a visible data table, both on initial load and when tables trigger a resize (which they do when they get shown or hidden).

So if you never visit a tab, its data will never be loaded.

Environment

None

Assignee

Seb Duggan

Reporter

Seb Duggan

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Medium
Configure