mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 08:13:27 +01:00
8 lines
291 B
TypeScript
8 lines
291 B
TypeScript
import type { GrpcConnection } from '@yaakapp/api';
|
|
import { useGrpcConnections } from './useGrpcConnections';
|
|
|
|
export function useLatestGrpcConnection(requestId: string | null): GrpcConnection | null {
|
|
const connections = useGrpcConnections(requestId);
|
|
return connections[0] ?? null;
|
|
}
|