Skip to content

Commit

Permalink
chore: wrap useSearchParams in suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
diego3g committed Mar 28, 2024
1 parent bc41fd6 commit dc58ffb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/web/src/app/(app)/settings/developers/logs/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Metadata } from 'next'
import { ReactNode } from 'react'
import { ReactNode, Suspense } from 'react'

import { WebhookLogsFilters } from './webhook-logs-filters'
import { WebhookLogsList } from './webhook-logs-list'
Expand All @@ -16,8 +16,10 @@ export default async function WebhookLogsLayout({
return (
<div className="space-y-4">
<h2 className="text-2xl font-bold tracking-tight">Webhook logs</h2>
<WebhookLogsFilters />
<WebhookLogsList />
<Suspense fallback={null}>
<WebhookLogsFilters />
<WebhookLogsList />
</Suspense>
<div>{children}</div>
</div>
)
Expand Down

0 comments on commit dc58ffb

Please sign in to comment.