()
| 3 | import { useAppStore } from "./store"; |
| 4 | |
| 5 | export function SyncAppStore() { |
| 6 | const utils = api.useContext(); |
| 7 | |
| 8 | const setApi = useAppStore((state) => state.setApi); |
| 9 | |
| 10 | useEffect(() => { |
| 11 | setApi(utils); |
| 12 | }, [utils, setApi]); |
| 13 | |
| 14 | return null; |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected