bug fixes

This commit is contained in:
undefined committed 2024-10-05 20:38:41 +08:00
1 parent 28b3abf441
commit 69966e5fe9
11 files changed
+61 -16

No files matched your search

@@ -60,9 +60,14 @@ declare module '../../context' {
}
}
let scratchpad: ScratchpadService;
export default function ScratchpadContainer() {
const store = useStore();
ctx.set('scratchpad', new ScratchpadService(store));
if (!scratchpad) {
scratchpad = new ScratchpadService(store);
ctx.set('scratchpad', scratchpad);
}
const [, updateState] = React.useState<any>();
const forceUpdate = React.useCallback(() => updateState({}), []);
React.useEffect(() => {