Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

serverStateBootstrap.tsx

10 lines269 Bytes

1import { useEffect } from "react";
2​
3import { getWsRpcClient } from "../wsRpcClient";
4import { startServerStateSync } from "./serverState";
5​
6export function ServerStateBootstrap() {
7 useEffect(() => startServerStateSync(getWsRpcClient().server), []);
8​
9 return null;