react-query-external-sync
Version:
A tool for syncing React Query state to an external Dev Tools
36 lines (35 loc) • 1.25 kB
TypeScript
/**
* Centralized storage query keys for all storage hooks
* This ensures consistency across MMKV, AsyncStorage, and SecureStorage hooks
* and allows easy modification of the base storage key in one place
*/
export declare const storageQueryKeys: {
/**
* Base storage key - change this to update all storage-related queries
*/
readonly base: () => readonly ["#storage"];
/**
* MMKV storage query keys
*/
readonly mmkv: {
readonly root: () => readonly ["#storage", "mmkv"];
readonly key: (key: string) => readonly ["#storage", "mmkv", string];
readonly all: () => readonly ["#storage", "mmkv", "all"];
};
/**
* AsyncStorage query keys
*/
readonly async: {
readonly root: () => readonly ["#storage", "async"];
readonly key: (key: string) => readonly ["#storage", "async", string];
readonly all: () => readonly ["#storage", "async", "all"];
};
/**
* SecureStorage query keys
*/
readonly secure: {
readonly root: () => readonly ["#storage", "secure"];
readonly key: (key: string) => readonly ["#storage", "secure", string];
readonly all: () => readonly ["#storage", "secure", "all"];
};
};