Skip to content

Instantly share code, notes, and snippets.

@omerman
omerman / ApiQuery
Last active November 3, 2022 15:18
import { QueryFunctionContext } from "@tanstack/react-query";
import { Updater } from "@tanstack/query-core/build/types/packages/query-core/src/utils";
import { axiosClient } from "../axios/axiosClient";
import { queryClient } from "./queryClient";
export class ApiQuery<Data extends object & { __OBJECT?: any }, Arg = void> {
static skipToken = "$_$_SKIP_$_$" as const;
readonly buildApiPathKey: (arg: Arg) => string;