fix: decouple react and react-dom imports from utils and make it treeshakeable (#7527)

fix: decouple react and react-dom imports from utils and make it tree-shakeable
This commit is contained in:
Aakansha Doshi 2024-01-08 21:01:47 +05:30 committed by GitHub
parent 8b993d409e
commit 65047cc2cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 69 additions and 74 deletions

View file

@ -22,7 +22,6 @@ import {
preventUnload,
resolvablePromise,
throttleRAF,
withBatchedUpdates,
} from "../../packages/excalidraw/utils";
import {
CURSOR_SYNC_TIMEOUT,
@ -83,6 +82,7 @@ import { atom, useAtom } from "jotai";
import { appJotaiStore } from "../app-jotai";
import { Mutable, ValueOf } from "../../packages/excalidraw/utility-types";
import { getVisibleSceneBounds } from "../../packages/excalidraw/element/bounds";
import { withBatchedUpdates } from "../../packages/excalidraw/reactUtils";
export const collabAPIAtom = atom<CollabAPI | null>(null);
export const collabDialogShownAtom = atom(false);