mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 23:07:02 +08:00
feat: sqlite subdocument (#2816)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -25,7 +25,7 @@ beforeEach(async () => {
|
||||
.register(AffineSchemas)
|
||||
.register(__unstableSchemas);
|
||||
const initPage = async (page: Page) => {
|
||||
await page.waitForLoaded()
|
||||
await page.waitForLoaded();
|
||||
expect(page).not.toBeNull();
|
||||
assertExists(page);
|
||||
const pageBlockId = page.addBlock('affine:page', {
|
||||
|
||||
@@ -51,5 +51,6 @@ export function useBlockSuiteWorkspacePage(
|
||||
): Page | null {
|
||||
const pageAtom = getAtom(blockSuiteWorkspace, pageId);
|
||||
assertExists(pageAtom);
|
||||
return useAtomValue(pageAtom);
|
||||
const page = useAtomValue(pageAtom);
|
||||
return page;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user