refactor: modify layout to use ClientOnly and BackgroundBlobsClient components fix: correct import statement for ActivityFeed in the main page fix: enhance sitemap fetching logic with error handling and mock support refactor: convert BackgroundBlobs to default export for consistency refactor: simplify ErrorBoundary component and improve error handling UI chore: update framer-motion to version 12.24.10 in package.json and package-lock.json test: add minimal Prisma Client mock for testing purposes feat: create BackgroundBlobsClient for dynamic import of BackgroundBlobs feat: implement ClientOnly component to handle client-side rendering feat: add custom error handling components for better user experience
12 lines
332 B
TypeScript
12 lines
332 B
TypeScript
"use client";
|
|
|
|
import dynamic from "next/dynamic";
|
|
import React from "react";
|
|
|
|
// Dynamically import the heavy framer-motion component on the client only
|
|
const BackgroundBlobs = dynamic(() => import("@/components/BackgroundBlobs"), { ssr: false });
|
|
|
|
export default function BackgroundBlobsClient() {
|
|
return <BackgroundBlobs />;
|
|
}
|