mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 06:47:02 +08:00
refactor(component): editor component (#1834)
This commit is contained in:
@@ -31,9 +31,6 @@ const BroadcastPage: React.FC = () => {
|
||||
const [provider, setProvider] = useState<BroadCastChannelProvider | null>(
|
||||
null
|
||||
);
|
||||
useEffect(() => {
|
||||
globalThis.currentBlockSuiteWorkspace = blockSuiteWorkspace;
|
||||
}, [blockSuiteWorkspace]);
|
||||
useEffect(() => {
|
||||
const provider = createBroadCastChannelProvider(blockSuiteWorkspace);
|
||||
setProvider(provider);
|
||||
|
||||
Reference in New Issue
Block a user