fix: blob fetch and state syncing between tabs (#1287)

This commit is contained in:
Himself65
2023-03-02 21:48:35 -06:00
committed by GitHub
parent 2a955d1391
commit 4d8d128539
6 changed files with 28 additions and 16 deletions

View File

@@ -19,7 +19,11 @@ declare global {
const BroadcastPage: React.FC = () => {
const blockSuiteWorkspace = useMemo(
() => createEmptyBlockSuiteWorkspace('broadcast-test'),
() =>
createEmptyBlockSuiteWorkspace(
'broadcast-test',
(_: string) => undefined
),
[]
);
const [provider, setProvider] = useState<BroadCastChannelProvider | null>(