Currently, we fetch the compendia resources at the page level all at once during page load and pass the API response down to each tab as a prop. We want to enable each tab to independently handle the data fetching of its corresponding resource.
Problem or idea
We should move the data-fetching location from pages/[type] to each tab (i.e., the normalized and RNA-Seq Sample tabs) using the URL query and memoizing the response.
Solution or next step
Move the data-fetching logic from pages/[type] to NormalizedTab and RNASeqTab utilizing query.type and useMemo
Handle the error at the shared Download sub-component
Context
Currently, we fetch the compendia resources at the page level all at once during page load and pass the API response down to each tab as a prop. We want to enable each tab to independently handle the data fetching of its corresponding resource.
Problem or idea
We should move the data-fetching location from
pages/[type]
to each tab (i.e., the normalized and RNA-Seq Sample tabs) using the URL query and memoizing the response.Solution or next step
pages/[type]
toNormalizedTab
andRNASeqTab
utilizingquery.type
anduseMemo
Download
sub-component