workspace: upgrade to cordis@4.0.0-beta.1, fix #975

This commit is contained in:
undefined committed 2025-04-11 21:21:47 +08:00
1 parent 5d5f6c69d7
commit bf51bd30c7
34 files changed
+87 -88

No files matched your search

@@ -66,7 +66,7 @@ export default function ScratchpadContainer() {
const store = useStore();
if (!scratchpad) {
scratchpad = new ScratchpadService(store);
ctx.set('scratchpad', scratchpad);
ctx.provide('scratchpad', scratchpad);
}
const [, updateState] = React.useState<any>();
const forceUpdate = React.useCallback(() => updateState({}), []);