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 { HttpResponse} from '@yaakapp-internal/models';
import { httpResponsesAtom } from '@yaakapp-internal/models';
import { useAtomValue } from 'jotai/index';
import { useAtomValue } from 'jotai';
export function useLatestHttpResponse(requestId: string | null): HttpResponse | null {
return useAtomValue(httpResponsesAtom).find((r) => r.requestId === requestId) ?? null;