mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: scratchpad reinit
This commit is contained in:
1 parent
2f2b1ca711
commit
6e4e2d5ecf
2 files changed
+3
-6
No files matched your search
@@ -149,15 +149,15 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
||||
});
|
||||
};
|
||||
|
||||
const root = createRoot($('#scratchpad').get(0));
|
||||
renderReact = () => {
|
||||
const root = createRoot($('#scratchpad').get(0));
|
||||
root.render(
|
||||
<Provider store={store}>
|
||||
<ScratchpadApp />
|
||||
</Provider>,
|
||||
);
|
||||
unmountReact = () => root.unmount();
|
||||
};
|
||||
unmountReact = () => root.unmount();
|
||||
reactLoaded = true;
|
||||
$('.loader-container').hide();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user