refactor(plugin-infra): workspace loading (#3222)

This commit is contained in:
Alex Yang
2023-07-13 23:52:06 +08:00
committed by GitHub
parent 23ac82f845
commit 1f5995ffc7
16 changed files with 70 additions and 42 deletions
@@ -12,7 +12,6 @@ export const BlockHubWrapper = (props: BlockHubProps): ReactElement => {
const blockHub = useAtomValue(props.blockHubAtom);
const ref = useRef<HTMLDivElement>(null);
useEffect(() => {
console.log('ref.current', blockHub, ref);
if (ref.current) {
const div = ref.current;
if (blockHub) {