mirror of
https://github.com/strapi/strapi.git
synced 2025-10-17 02:53:22 +00:00
future(homepage): missing addTagTypes results in stale data (#23428)
This commit is contained in:
parent
167a9bf54f
commit
d08ef457fd
@ -2,7 +2,11 @@ import * as Homepage from '../../../shared/contracts/homepage';
|
||||
|
||||
import { contentManagerApi } from './api';
|
||||
|
||||
const homepageService = contentManagerApi.injectEndpoints({
|
||||
const homepageService = contentManagerApi
|
||||
.enhanceEndpoints({
|
||||
addTagTypes: ['RecentDocumentList'],
|
||||
})
|
||||
.injectEndpoints({
|
||||
/**
|
||||
* TODO: Remove overrideExisting when we remove the future flag
|
||||
* and delete the old homepage service in the admin
|
||||
@ -20,7 +24,7 @@ const homepageService = contentManagerApi.injectEndpoints({
|
||||
],
|
||||
}),
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
const { useGetRecentDocumentsQuery } = homepageService;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user