79406399

Date: 2025-02-02 10:26:00
Score: 1
Natty:
Report link

Solved it by by calling the SearchResults component inside the Page component and wrapping it in a Suspense block.

import { Suspense } from "react";

const searchResults = () => {
    // code
}

const Page = () => {
    return (
        <Suspense>
            <searchResults />
        </Suspense>
    )
}

export default Page
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yash Kumar