Files
nanobot/webui/src/hooks/useThreadVisibility.ts
T
chengyongru 1469d4811c perf(webui): reduce repeated work and bound history rendering (#5703)
* perf(webui): reduce repeated work and bound history rendering

* fix(webui): keep continuation reasoning with its answer

* refactor(webui): reuse answer buffers and prepared copy text

* perf(webui): restore conditional replay buffer initialization

* fix(webui): remove code block pagination
2026-09-09 14:02:26 +08:00

7 lines
209 B
TypeScript

import { createContext, useContext } from "react";
export const ThreadVisibilityContext = createContext(true);
export function useThreadVisibility(): boolean {
return useContext(ThreadVisibilityContext);
}