Files
clash-verge-rev/src/services/states.ts
T

18 lines
406 B
TypeScript
Raw Normal View History

2022-02-23 02:00:45 +08:00
import { atom } from "recoil";
import { ApiType } from "./types";
export const atomClashPort = atom<number>({
key: "atomClashPort",
default: 0,
});
export const atomLogData = atom<ApiType.LogItem[]>({
key: "atomLogData",
default: [],
});
2022-03-21 11:40:27 +08:00
// save the state of each profile item loading
export const atomLoadingCache = atom<Record<string, boolean>>({
key: "atomLoadingCache",
default: {},
});