Skip to content

Commit

Permalink
hotfix: add suspense to answer page
Browse files Browse the repository at this point in the history
  • Loading branch information
koremp committed Apr 2, 2024
1 parent d0a649f commit 175945c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/app/answer/page.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
'use client'

import React from 'react'
import { Suspense } from "react";
import client from '@/utils/client'
import { useSearchParams } from "next/navigation";
import styles from "./answer.module.css";
import { Suspense } from "react";


const LoadingSpinner = () => {
return (
<div className={styles.loader}>
<div />
<div />
</div>
)
}
Expand Down Expand Up @@ -88,4 +88,12 @@ const Answer = () => {
)
}

export default Answer;
const AnswerPage = () => {
return (
<Suspense>
<Answer/>
</Suspense>
)
}

export default AnswerPage;

0 comments on commit 175945c

Please sign in to comment.