When the user views a collection detail page directly e.g by pasting the URL into the address bar or following a link on an external site, extra requests to the back end are made.
Adding to the Curators can filter Collections by curator and status epic as the FE caching and refresh strategy is related to this issue. Hoping we can fix this with the changes for the epic.
Describe the bug
When the user views a collection detail page directly e.g by pasting the URL into the address bar or following a link on an external site, extra requests to the back end are made.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The collection detail API (/v1/collections/{collection_id}) is only called once
Environment
All
Additional context
The fact that the collections endpoint is being hit at all for the detail page is addressed in a separate ticket:
bug( ): Extra API calls to collection endpoints when accessing portal collection detail page#4075