mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
bug fixes
This commit is contained in:
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(() => {
|
||||
|
||||
Reference in new issue
Block a user