MCPcopy Create free account
hub / github.com/astercloud/aster / useSessions

Function useSessions

studio/src/hooks/useApi.ts:139–144  ·  view source on GitHub ↗
(opts: SessionQueryOpts = {})

Source from the content-addressed store, hash-verified

137
138// Sessions
139export function useSessions(opts: SessionQueryOpts = {}) {
140 return useQuery({
141 queryKey: queryKeys.sessions(opts),
142 queryFn: () => api.getSessions(opts),
143 });
144}
145
146export function useSession(id: string) {
147 return useQuery({

Callers 1

SessionsFunction · 0.90

Calls 1

getSessionsMethod · 0.80

Tested by

no test coverage detected