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