feat: implement Suspense and Await for improved data loading in carousel components
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@ import type { TNewsResponse } from '~/apis/common/get-news'
|
||||
export type TNews = {
|
||||
title: string
|
||||
description: string
|
||||
items: TNewsResponse[]
|
||||
items: Promise<{ data: TNewsResponse[] }>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user