mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
Merge pull request #14571 from strapi/feature/relations-main-view-relation-cache
This commit is contained in:
commit
9cef84c486
@ -38,6 +38,7 @@ export const useRelation = (cacheKey, { relation, search }) => {
|
||||
};
|
||||
|
||||
const relationsRes = useInfiniteQuery(['relation', cacheKey], fetchRelations, {
|
||||
cacheTime: 0,
|
||||
enabled: relation.enabled,
|
||||
getNextPageParam(lastPage) {
|
||||
// the API may send an empty 204 response
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user