mirror of
https://github.com/strapi/strapi.git
synced 2025-11-06 21:29:24 +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, {
|
const relationsRes = useInfiniteQuery(['relation', cacheKey], fetchRelations, {
|
||||||
|
cacheTime: 0,
|
||||||
enabled: relation.enabled,
|
enabled: relation.enabled,
|
||||||
getNextPageParam(lastPage) {
|
getNextPageParam(lastPage) {
|
||||||
// the API may send an empty 204 response
|
// the API may send an empty 204 response
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user