mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-17 17:26:44 +01:00
7 lines
295 B
TypeScript
7 lines
295 B
TypeScript
import type { GrpcConnection } from '@yaakapp-internal/models';
|
|
import { useGrpcConnections } from './useGrpcConnections';
|
|
|
|
export function useLatestGrpcConnection(requestId: string | null): GrpcConnection | null {
|
|
return useGrpcConnections().find((c) => c.requestId === requestId) ?? null;
|
|
}
|