Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

pull-requests.ts

16 lines621 Bytes

1import { createEnvironmentRpcQueryAtomFamily } from "@t3tools/client-runtime/state/runtime";
2import { WS_METHODS } from "@t3tools/contracts";
3import { connectionAtomRuntime } from "../connection/runtime";
4​
5export const composerPullRequests = {
6 list: createEnvironmentRpcQueryAtomFamily(connectionAtomRuntime, {
7 label: "mobile:composer:pull-requests",
8 tag: WS_METHODS.pullRequestsList,
9 staleTimeMs: 30_000,
10 }),
11 detail: createEnvironmentRpcQueryAtomFamily(connectionAtomRuntime, {
12 label: "mobile:composer:pull-request-detail",
13 tag: WS_METHODS.pullRequestsDetail,
14 staleTimeMs: 60_000,
15 }),
16};