mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-19 17:17:50 +01:00
9 lines
243 B
TypeScript
9 lines
243 B
TypeScript
import type { GrpcRequest } from '@yaakapp-internal/models';
|
|
import { atom, useAtomValue } from 'jotai';
|
|
|
|
export const grpcRequestsAtom = atom<GrpcRequest[]>([]);
|
|
|
|
export function useGrpcRequests() {
|
|
return useAtomValue(grpcRequestsAtom);
|
|
}
|