feat: add the map
This commit is contained in:
@@ -1 +0,0 @@
|
||||
// src/utils/Debug.ts
|
||||
@@ -1,11 +0,0 @@
|
||||
import { Suspense, lazy } from "react";
|
||||
const Perf = lazy(() => import("r3f-perf").then((m) => ({ default: m.Perf })));
|
||||
export function DebugPerf() {
|
||||
const debug = new URLSearchParams(window.location.search).has("debug");
|
||||
if (!debug) return null;
|
||||
return (
|
||||
<Suspense fallback={null}>
|
||||
<Perf position="top-left" />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user