react-server675fbba4
react-serverfilespackagesreact-serverdevtoolsapppanelsCacheInspector.jsx
packages/react-server/devtools/app/panels/CacheInspector.jsxjsx492 B7e7f9c0e
import { getRuntime } from "@lazarv/react-server";
import { DEVTOOLS_CONTEXT } from "../../context.mjs";
import CachePanel from "../../client/panels/CachePanel.jsx";

export default async function CacheInspector() {
  const devtools = getRuntime(DEVTOOLS_CONTEXT);
  const events = devtools?.getCacheEvents() ?? [];

  // For now, pass cache events. Full entry enumeration will be added
  // once we export getCacheInstances() from cache/index.mjs.
  return <CachePanel events={events} />;
}