mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-17 05:07:17 +02:00
Split codebase (#455)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { GrpcConnection } from "@yaakapp-internal/models";
|
||||
import { grpcConnectionsAtom } from "@yaakapp-internal/models";
|
||||
import { useAtomValue } from "jotai";
|
||||
|
||||
export function useLatestGrpcConnection(requestId: string | null): GrpcConnection | null {
|
||||
return useAtomValue(grpcConnectionsAtom).find((c) => c.requestId === requestId) ?? null;
|
||||
}
|
||||
Reference in New Issue
Block a user