|
@@ -13,7 +13,7 @@ import { DEFAULT_UI_OPTIONS } from "../../constants";
|
|
|
import { Provider } from "jotai";
|
|
|
import { jotaiScope, jotaiStore } from "../../jotai";
|
|
|
|
|
|
-const Excalidraw = (props: ExcalidrawProps) => {
|
|
|
+const ExcalidrawBase = (props: ExcalidrawProps) => {
|
|
|
const {
|
|
|
onChange,
|
|
|
initialData,
|
|
@@ -173,8 +173,10 @@ const areEqual = (
|
|
|
const forwardedRefComp = forwardRef<
|
|
|
ExcalidrawAPIRefValue,
|
|
|
PublicExcalidrawProps
|
|
|
->((props, ref) => <Excalidraw {...props} excalidrawRef={ref} />);
|
|
|
-export default React.memo(forwardedRefComp, areEqual);
|
|
|
+>((props, ref) => <ExcalidrawBase {...props} excalidrawRef={ref} />);
|
|
|
+
|
|
|
+export const Excalidraw = React.memo(forwardedRefComp, areEqual);
|
|
|
+
|
|
|
export {
|
|
|
getSceneVersion,
|
|
|
isInvisiblySmallElement,
|