Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

Merge branch 'upstream-feat/appflowy_tauri_3' into feat/appflowy_tauri_3

ascarbek075bf8f2fc7e
diff --cc frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/database_controller.ts
index 0d417a0f4a,819818dae8..264e7accd1
--- a/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/database_controller.ts
+++ b/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/database_controller.ts
@@@ -1,12 -1,11 +1,12 @@@
import { DatabaseBackendService } from './database_bd_svc';
import { FieldController, FieldInfo } from './field/field_controller';
import { DatabaseViewCache } from './view/database_view_cache';
- import { DatabasePB } from '../../../../services/backend/models/flowy-database/grid_entities';
+ import { DatabasePB } from '../../../../services/backend';
import { RowChangedReason, RowInfo } from './row/row_cache';
-import { Err, Ok } from 'ts-results';
+import { Err, Ok, Result } from 'ts-results';
+import { FlowyError, RowPB } from '../../../../services/backend';
- export type SubscribeCallback = {
+ export type SubscribeCallbacks = {
onViewChanged?: (data: DatabasePB) => void;
onRowsChanged?: (rowInfos: readonly RowInfo[], reason: RowChangedReason) => void;
onFieldsChanged?: (fieldInfos: readonly FieldInfo[]) => void;