Avoid infinite loop by marking the component as server-side
This commit is contained in:
parent
7c6f00155a
commit
de595bbf51
@ -1,14 +1,6 @@
|
|||||||
'use client'
|
|
||||||
|
|
||||||
import { Guest } from '@/app/lib/definitions';
|
import { Guest } from '@/app/lib/definitions';
|
||||||
import SkeletonRow from './skeleton-row';
|
|
||||||
import { Suspense } from 'react';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
|
|
||||||
export function TableHeader() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export default async function guestsTable() {
|
export default async function guestsTable() {
|
||||||
|
|
||||||
let guests: Guest[] = await fetch("http://localhost:3001/guests.json")
|
let guests: Guest[] = await fetch("http://localhost:3001/guests.json")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user