We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc288a0 commit 6b6d6c0Copy full SHA for 6b6d6c0
src/app/admin/dashboard/page.tsx
@@ -4,9 +4,14 @@ import { getCategoryData } from '@/actions/categories'
4
import { getLatestUsers } from '@/actions/auth'
5
6
const Dashboard = async () => {
7
- const monthlyOrders = await getMonthlyOrders()
8
- const categoryData = await getCategoryData()
9
- const latestUsers = await getLatestUsers()
+ // const monthlyOrders = await getMonthlyOrders()
+ // const categoryData = await getCategoryData()
+ // const latestUsers = await getLatestUsers()
10
+ const [monthlyOrders, categoryData, latestUsers] = await Promise.all([
11
+ getMonthlyOrders(),
12
+ getCategoryData(),
13
+ getLatestUsers(),
14
+ ])
15
16
return (
17
<PageComponent
0 commit comments