Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface gqlessSharedCache

gqless-hooks Shared Cache

The hooks subscribe to this cache through sharedCacheId option and you can imperatively modify it using the function setCacheData exported from "gqless-hooks".

example
import { setCacheData } from "gqless-hooks";

declare global {
  interface gqlessSharedCache {
    cacheKey: string[];
  }
}

// ...

setCacheData("cacheKey", ["hello", "world"]);

Hierarchy

  • {}
    • gqlessSharedCache

Generated using TypeDoc