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".
sharedCacheId
setCacheData
"gqless-hooks"
import { setCacheData } from "gqless-hooks"; declare global { interface gqlessSharedCache { cacheKey: string[]; } } // ... setCacheData("cacheKey", ["hello", "world"]);
Generated using TypeDoc
gqless-hooks Shared Cache
The hooks subscribe to this cache through
sharedCacheId
option and you can imperatively modify it using the functionsetCacheData
exported from"gqless-hooks"
.import { setCacheData } from "gqless-hooks"; declare global { interface gqlessSharedCache { cacheKey: string[]; } } // ... setCacheData("cacheKey", ["hello", "world"]);