I've updated the implementation to utilize query.type and removed the type from the tab-related sub-components. Additionally, I've moved the data fetching location from Download (on every tab switch - each tab fetches its data separately) to [type] (only fetch once on page load) to reduce API calls and improve UI performance.
Changes include:
Used the type query and cleaned up the type props from the tab-related sub-components
Fetching the compendia in [type] and remove the API call from Download
Updated the useCompendia hook
Types of changes
Refactor (addresses code organization and design mentioned in corresponding issue)
Functional tests
N/A
Checklist
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules
Issue Number
Epic: #366
Closes #378 (Stacked issue 3)
Base PR branch: #399
Purpose/Implementation Notes
I've updated the implementation to utilize
query.type
and removed thetype
from the tab-related sub-components. Additionally, I've moved the data fetching location fromDownload
(on every tab switch - each tab fetches its data separately) to[type]
(only fetch once on page load) to reduce API calls and improve UI performance.Changes include:
type
query and cleaned up thetype
props from the tab-related sub-componentscompendia
in[type]
and remove the API call fromDownload
useCompendia
hookTypes of changes
Functional tests
N/A
Checklist
Screenshots
N/A