chore: bump blocksuite (#1298)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
1 parent
50ff9b0c5c
commit
205092180b
14 files changed
+95
-95
No files matched your search
@@ -30,7 +30,7 @@ const WorkspaceDetail: React.FC = () => {
|
||||
const [, rerender] = useState(false);
|
||||
// fixme(himself65): this is a hack
|
||||
useEffect(() => {
|
||||
const dispose = currentWorkspace?.blockSuiteWorkspace.signals.pageAdded.on(
|
||||
const dispose = currentWorkspace?.blockSuiteWorkspace.slots.pageAdded.on(
|
||||
id => {
|
||||
if (pageId === id) {
|
||||
rerender(prev => !prev);
|
||||
@@ -40,7 +40,7 @@ const WorkspaceDetail: React.FC = () => {
|
||||
return () => {
|
||||
dispose?.dispose();
|
||||
};
|
||||
}, [currentWorkspace?.blockSuiteWorkspace.signals.pageAdded, pageId]);
|
||||
}, [currentWorkspace?.blockSuiteWorkspace.slots.pageAdded, pageId]);
|
||||
useEffect(() => {
|
||||
if (currentWorkspace) {
|
||||
enableFullFlags(currentWorkspace.blockSuiteWorkspace);
|
||||
|
||||
Reference in new issue
Block a user