feat: enhance news fetching with pagination and active status filters
This commit is contained in:
@@ -27,12 +27,15 @@ export const loader = async ({}: Route.LoaderArgs) => {
|
||||
|
||||
const spotlightData = getNews({
|
||||
categories: [spotlightCode],
|
||||
active: true,
|
||||
})
|
||||
const beritaData = getNews({
|
||||
categories: [beritaCode],
|
||||
active: true,
|
||||
})
|
||||
const kajianData = getNews({
|
||||
categories: [kajianCode],
|
||||
active: true,
|
||||
})
|
||||
return {
|
||||
spotlightCategory,
|
||||
|
||||
Reference in New Issue
Block a user