future(homepage): missing addTagTypes results in stale data (#23428)

This commit is contained in:
markkaylor 2025-04-25 11:28:02 +02:00 committed by GitHub
parent 167a9bf54f
commit d08ef457fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;