+
+ {fields.map((field) => {
+ return ;
+ })}
+
+
+
);
-}
+});
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/document/EquationBlock/index.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/document/EquationBlock/index.tsx
index 8532aaa511..489a7aa641 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/document/EquationBlock/index.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/document/EquationBlock/index.tsx
@@ -84,4 +84,4 @@ function EquationBlock({ node }: { node: NestedBlock
})
);
}
-export default EquationBlock;
+export default React.memo(EquationBlock);
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/document/GridBlock/index.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/document/GridBlock/index.tsx
index 1f689943b5..d3c9d10dc1 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/document/GridBlock/index.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/document/GridBlock/index.tsx
@@ -33,4 +33,4 @@ function GridBlock({ node }: { node: NestedBlock }) {
);
}
-export default GridBlock;
+export default React.memo(GridBlock);
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/document/ImageBlock/index.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/document/ImageBlock/index.tsx
index b497989eb3..aff3cf4bc6 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/document/ImageBlock/index.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/document/ImageBlock/index.tsx
@@ -77,4 +77,4 @@ function ImageBlock({ node }: { node: NestedBlock }) {
);
}
-export default ImageBlock;
+export default React.memo(ImageBlock);
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/NodeChildren.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/NodeChildren.tsx
index 7b9978cda7..c134058dba 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/NodeChildren.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/NodeChildren.tsx
@@ -11,4 +11,4 @@ function NodeChildren({ childIds, ...props }: { childIds?: string[] } & React.HT
) : null;
}
-export default NodeChildren;
+export default React.memo(NodeChildren);
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx
index 46f394a6be..3dc5f6c50b 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx
@@ -96,7 +96,7 @@ function NodeComponent({ id, ...props }: { id: string } & React.HTMLAttributes {
);
};
-export default React.memo(NodeWithErrorBoundary);
+export default NodeWithErrorBoundary;
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/document/Root/index.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/document/Root/index.tsx
index 23b9e6720c..d8683e4d55 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/document/Root/index.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/document/Root/index.tsx
@@ -27,8 +27,8 @@ function Root({ documentData }: { documentData: DocumentData }) {
);
}
-const RootWithErrorBoundary = withErrorBoundary(Root, {
+const RootWithErrorBoundary = withErrorBoundary(React.memo(Root), {
FallbackComponent: ErrorBoundaryFallbackComponent,
});
-export default React.memo(RootWithErrorBoundary);
+export default RootWithErrorBoundary;
diff --git a/frontend/appflowy_tauri/src/appflowy_app/hooks/notification.hooks.ts b/frontend/appflowy_tauri/src/appflowy_app/hooks/notification.hooks.ts
index 5c1efe43db..73edd70594 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/hooks/notification.hooks.ts
+++ b/frontend/appflowy_tauri/src/appflowy_app/hooks/notification.hooks.ts
@@ -14,6 +14,7 @@ import {
RowsChangePB,
RowsVisibilityChangePB,
SortChangesetNotificationPB,
+ FieldSettingsPB,
} from '@/services/backend';
const NotificationPBMap = {
@@ -28,6 +29,7 @@ const NotificationPBMap = {
[DatabaseNotification.DidUpdateField]: FieldPB,
[DatabaseNotification.DidUpdateCell]: null,
[DatabaseNotification.DidUpdateSort]: SortChangesetNotificationPB,
+ [DatabaseNotification.DidUpdateFieldSettings]: FieldSettingsPB,
};
type NotificationMap = typeof NotificationPBMap;