Fix jotai/index imports

This commit is contained in:
Gregory Schier
2025-04-21 07:08:13 -07:00
parent 6d4fdc91fe
commit 2f8b2a81c7
28 changed files with 28 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
import type { GrpcConnection} from '@yaakapp-internal/models';
import { grpcConnectionsAtom } from '@yaakapp-internal/models';
import { useAtomValue } from 'jotai/index';
import { useAtomValue } from 'jotai';
export function useLatestGrpcConnection(requestId: string | null): GrpcConnection | null {
return useAtomValue(grpcConnectionsAtom).find((c) => c.requestId === requestId) ?? null;